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:
Vinicius Monego 2021-06-08 13:33:03 +00:00 committed by Leo Famulari
parent 0654e43172
commit 63d2928a3b
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08

View file

@ -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