* [bug#48920] [PATCH 1/2] gnu: python-toolz: Enable tests.
@ 2021-06-08 13:33 Vinicius Monego
2021-06-08 13:35 ` [bug#48920] [PATCH 2/2] gnu: python-toolz: Update to 0.11.1 Vinicius Monego
2021-06-08 17:18 ` bug#48920: [PATCH 1/2] gnu: python-toolz: Enable tests Leo Famulari
0 siblings, 2 replies; 3+ messages in thread
From: Vinicius Monego @ 2021-06-08 13:33 UTC (permalink / raw)
To: 48920; +Cc: Vinicius Monego
* gnu/packages/python-xyz.scm (python-toolz)[arguments]: Remove #:tests?.
Override check phase.
[native-inputs]: Add python-pytest.
---
gnu/packages/python-xyz.scm | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0d6c9fc2c5..c724357c11 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -21341,9 +21341,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
--
2.31.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-06-08 17:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-08 13:33 [bug#48920] [PATCH 1/2] gnu: python-toolz: Enable tests Vinicius Monego
2021-06-08 13:35 ` [bug#48920] [PATCH 2/2] gnu: python-toolz: Update to 0.11.1 Vinicius Monego
2021-06-08 17:18 ` bug#48920: [PATCH 1/2] gnu: python-toolz: Enable tests Leo Famulari
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).