mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-28 23:32:24 -05:00
gnu: python-toolz: Enable tests.
* gnu/packages/python-xyz.scm (python-toolz)[arguments]: Remove #:tests?. Override check phase. [native-inputs]: Add python-pytest. Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
parent
0654e43172
commit
63d2928a3b
1 changed files with 11 additions and 3 deletions
|
@ -21296,9 +21296,17 @@ (define-public python-toolz
|
||||||
(base32
|
(base32
|
||||||
"1j9i7fdjnx9dz35fdj5gvgxx6585ja9sxgaiv65if77nlxz0m7wj"))))
|
"1j9i7fdjnx9dz35fdj5gvgxx6585ja9sxgaiv65if77nlxz0m7wj"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
;; FIXME: tests cannot be computed: "Can't perform this operation for
|
(arguments
|
||||||
;; unregistered loader type"
|
`(#:phases
|
||||||
(arguments '(#:tests? #f))
|
(modify-phases %standard-phases
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(add-installed-pythonpath inputs outputs)
|
||||||
|
(invoke "python" "-m" "pytest" "--doctest-modules"
|
||||||
|
"--pyargs" "toolz")))))))
|
||||||
|
(native-inputs
|
||||||
|
`(("python-pytest" ,python-pytest)))
|
||||||
(home-page "https://github.com/pytoolz/toolz/")
|
(home-page "https://github.com/pytoolz/toolz/")
|
||||||
(synopsis "List processing tools and functional utilities")
|
(synopsis "List processing tools and functional utilities")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue