mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-15 19:40:46 +02:00
gnu: python-args: Patch reference to basestring.
Hi Maxime, I **totally** forgot about this one! Seems like no one is using it. `python2-args` also builds. But no package seems to depend on it anyway. Regards, Tanguy * gnu/packages/python-xyz.scm (python-args)[source]: Use the latest version from the git repository to get the test suite. [home-page]: Update URL. [native-inputs]: Add python-nose. [arguments]: Replace reference to basestring with str. Invoke nosetests. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
f44c135608
commit
18e0098817
1 changed files with 30 additions and 15 deletions
|
@ -14056,21 +14056,36 @@ files for use with Python.")
|
||||||
(license license:bsd-2)))
|
(license license:bsd-2)))
|
||||||
|
|
||||||
(define-public python-args
|
(define-public python-args
|
||||||
|
(let ((commit "9460f1a35eb3055e9e4de1f0a6932e0883c72d65") (revision "0"))
|
||||||
(package
|
(package
|
||||||
(name "python-args")
|
(name "python-args")
|
||||||
(version "0.1.0")
|
(version (git-version "0.1.0" revision commit))
|
||||||
|
(home-page "https://github.com/kennethreitz-archive/args")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (pypi-uri "args" version))
|
(uri (git-reference
|
||||||
|
(url home-page)
|
||||||
|
(commit commit)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7"))))
|
"1zfxpbp9vldqdrjmd0c6y3wisl35mx5v8zlyp3nhwpy1730wrc9j"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(home-page "https://github.com/kennethreitz/args")
|
(arguments
|
||||||
|
`(#:phases (modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-args.py
|
||||||
|
(lambda _
|
||||||
|
(substitute* "args.py"
|
||||||
|
(("basestring") "str"))))
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(invoke "nosetests" "-v")))))))
|
||||||
|
(native-inputs (list python-nose))
|
||||||
(synopsis "Command-line argument parser")
|
(synopsis "Command-line argument parser")
|
||||||
(description
|
(description
|
||||||
"This library provides a Python module to parse command-line arguments.")
|
"This library provides a Python module to parse command-line arguments.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3))))
|
||||||
|
|
||||||
(define-public python-clint
|
(define-public python-clint
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue