guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: python-toolz: Enable tests.


From: guix-commits
Subject: 01/02: gnu: python-toolz: Enable tests.
Date: Tue, 8 Jun 2021 13:18:31 -0400 (EDT)

lfam pushed a commit to branch master
in repository guix.

commit 63d2928a3b3cfeef7fdc2f0334d4554ff92fbda6
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Tue Jun 8 13:33:03 2021 +0000

    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>
---
 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 2df04c8..961e668 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]