gnu: python-click: Enable tests.
* gnu/packages/python-xyz.scm (python-click)[arguments]: Enable tests. Add custom 'check phase.
This commit is contained in:
parent
619848558e
commit
8d7e7ca6a1
|
@ -1648,10 +1648,7 @@ files.")
|
||||||
"1mzjixd4vjbjvzb6vylki9w1556a9qmdh35kzmq6cign46av952v"))))
|
"1mzjixd4vjbjvzb6vylki9w1556a9qmdh35kzmq6cign46av952v"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(;; The tests are fragile, depending on a specific version of pytest:
|
`(#:phases
|
||||||
;; <https://github.com/pallets/click/issues/823>
|
|
||||||
#:tests? #f
|
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'fix-paths
|
(add-after 'unpack 'fix-paths
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
@ -1660,7 +1657,10 @@ files.")
|
||||||
(substitute* "click/_unicodefun.py"
|
(substitute* "click/_unicodefun.py"
|
||||||
(("'locale'")
|
(("'locale'")
|
||||||
(string-append "'" glibc "/bin/locale'"))))
|
(string-append "'" glibc "/bin/locale'"))))
|
||||||
#t)))))
|
#t))
|
||||||
|
(replace 'check
|
||||||
|
(lambda _
|
||||||
|
(invoke "python" "-m" "pytest"))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-pytest" ,python-pytest)))
|
`(("python-pytest" ,python-pytest)))
|
||||||
(home-page "https://palletsprojects.com/p/click/")
|
(home-page "https://palletsprojects.com/p/click/")
|
||||||
|
|
Loading…
Reference in New Issue