summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2021-06-08 13:33:03 +0000
committerLeo Famulari <leo@famulari.name>2021-06-08 13:17:52 -0400
commit63d2928a3b3cfeef7fdc2f0334d4554ff92fbda6 (patch)
tree9db6d94cbcd0c56df98ddecebe4b8cafe76abafb /gnu/packages
parent0654e431720019e4b3834bfd1ebd4960335b0ada (diff)
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>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python-xyz.scm14
1 files changed, 11 insertions, 3 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2df04c8a11..961e668ec4 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -21296,9 +21296,17 @@ library's @code{threading} module.")
(base32
"1j9i7fdjnx9dz35fdj5gvgxx6585ja9sxgaiv65if77nlxz0m7wj"))))
(build-system python-build-system)
- ;; FIXME: tests cannot be computed: "Can't perform this operation for
- ;; unregistered loader type"
- (arguments '(#:tests? #f))
+ (arguments
+ `(#:phases
+ (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/")
(synopsis "List processing tools and functional utilities")
(description