diff options
author | Vinicius Monego <monego@posteo.net> | 2025-06-30 22:01:48 -0300 |
---|---|---|
committer | Vinicius Monego <monego@posteo.net> | 2025-07-02 18:38:05 -0300 |
commit | 30ff14f39a6873a960fd9d98e38a6252d74dcd75 (patch) | |
tree | c49a5c3bcb974d42d782dcb15acb0990aa230e1b /gnu/packages/python-xyz.scm | |
parent | 13397f2d394d191a9086a692d00accbca9cb7279 (diff) |
gnu: python-argh: Update to 0.31.3.
* gnu/packages/python-xyz.scm (python-argh): Update to 0.31.3.
[source]: Fetch from PyPI.
[build-system]: Use pyproject-build-system.
[arguments]<#:phases>: Delete the 'patch-tests' phase. Do not override
the 'check' phase.
[native-inputs]: Add python-flit-core, python-pytest.
[propagated-inputs]: Remove python-iocapture, python-mock,
python-pytest, python-pytest-cov, python-pytest-xdist.
[description]: Improve it.
Change-Id: Ib02e4552271e1b461fed1fa5f0e70f603f2befa2
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r-- | gnu/packages/python-xyz.scm | 52 |
1 files changed, 13 insertions, 39 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5084027f3d..27c17ca4fa 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -32031,52 +32031,26 @@ itself.") (license license:expat))) (define-public python-argh - ;; There are 21 commits since the latest release containing important - ;; improvements. - (let ((commit "dcd3253f2994400a6a58a700c118c53765bc50a4") - (revision "1")) - (package + (package (name "python-argh") - (version (git-version "0.26.2" revision commit)) + (version "0.31.3") (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/neithere/argh") - (commit commit))) - (file-name (git-file-name name version)) + (method url-fetch) + (uri (pypi-uri "argh" version)) (sha256 - (base32 - "1p5h3dnpbsjmqrvil96s71asc6i3gpinmbrabqmwnrsxprz7r3ns")))) - (build-system python-build-system) - (arguments - '(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'patch-tests - (lambda _ - ;; Fix test failures on Python 3.9.9+. - ;; Taken via <https://github.com/neithere/argh/issues/148>. - (substitute* "test/test_integration.py" - (("assert run\\(p, '(bar|orig-name|nest bar)', exit=True\\)\ -\\.startswith\\('invalid choice'\\)" _ name) - (string-append "assert 'invalid choice' in \ -run(p, '" name "', exit=True)"))))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "pytest" "-vv"))))))) - (propagated-inputs - (list python-iocapture python-mock python-pytest python-pytest-cov - python-pytest-xdist)) + (base32 "1ycjb2f92iskvp27vq2a8vdbpmsij61apvmkn7k5xjhlpvc2607k")))) + (build-system pyproject-build-system) + (native-inputs (list python-flit-core python-pytest)) (home-page "https://github.com/neithere/argh/") (synopsis "Argparse wrapper with natural syntax") (description - "python-argh is a small library that provides several layers of -abstraction on top of @code{python-argparse}. The layers can be mixed. It is -always possible to declare a command with the highest possible (and least -flexible) layer and then tune the behaviour with any of the lower layers -including the native API of @code{python-argparse}.") - (license license:lgpl3+)))) + "Argh is a small library that provides several layers of abstraction +on top of @code{python-argparse}. The layers can be mixed. It is always +possible to declare a command with the highest possible (and least flexible) +layer and then tune the behaviour with any of the lower layers including the +native API of @code{python-argparse}.") + (license license:lgpl3+))) (define-public python-ppft (package |