gnu: python-click: Update to 8.1.2 and honor TESTS?.
* gnu/packages/python-xyz.scm (python-click): Update to 8.1.2. [phases]{fix-paths}: Remove obsolete phase. {check}: Invoke pytest directly and honor TESTS?. (python2-click): Delete variable.
This commit is contained in:
parent
5551f646c7
commit
2b22de8923
1 changed files with 6 additions and 16 deletions
|
@ -3515,30 +3515,23 @@ interfaces.")
|
||||||
(define-public python-click
|
(define-public python-click
|
||||||
(package
|
(package
|
||||||
(name "python-click")
|
(name "python-click")
|
||||||
(version "7.1.2")
|
(version "8.1.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "click" version))
|
(uri (pypi-uri "click" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"06kbzd6sjfkqan3miwj9wqyddfxc2b6hi7p5s4dvqjb3gif2bdfj"))))
|
"0whs38a2i0561kwbgigs6vic9r0a1887m2v1aw3rmv6r2kz0g5s7"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'fix-paths
|
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
|
||||||
(let ((glibc (assoc-ref inputs ,(if (%current-target-system)
|
|
||||||
"cross-libc" "libc"))))
|
|
||||||
(substitute* "src/click/_unicodefun.py"
|
|
||||||
(("'locale'")
|
|
||||||
(string-append "'" glibc "/bin/locale'"))))))
|
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(invoke "python" "-m" "pytest"))))))
|
(when tests?
|
||||||
(native-inputs
|
(invoke "pytest" "-vv")))))))
|
||||||
(list python-pytest))
|
(native-inputs (list python-pytest))
|
||||||
(home-page "https://palletsprojects.com/p/click/")
|
(home-page "https://palletsprojects.com/p/click/")
|
||||||
(synopsis "Command line library for Python")
|
(synopsis "Command line library for Python")
|
||||||
(description
|
(description
|
||||||
|
@ -3548,9 +3541,6 @@ composable way with as little code as necessary. Its name stands for
|
||||||
with sensible defaults out of the box.")
|
with sensible defaults out of the box.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public python2-click
|
|
||||||
(package-with-python2 python-click))
|
|
||||||
|
|
||||||
(define-public python-click-5
|
(define-public python-click-5
|
||||||
(package (inherit python-click)
|
(package (inherit python-click)
|
||||||
(name "python-click")
|
(name "python-click")
|
||||||
|
|
Reference in a new issue