guix-commits
[Top][All Lists]
Advanced

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

18/18: gnu: python-bottleneck: Honor #:tests? flag.


From: guix-commits
Subject: 18/18: gnu: python-bottleneck: Honor #:tests? flag.
Date: Mon, 8 May 2023 05:51:49 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 12c529c071762dc80ef0439a1c94422cfa26af57
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon May 8 12:39:20 2023 +0300

    gnu: python-bottleneck: Honor #:tests? flag.
    
    * gnu/packages/python-science.scm (python-bottleneck)[arguments]: Adjust
    custom 'check phase to honor the #:tests? flag.
---
 gnu/packages/python-science.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index ef9f672f1f..c9f122c5c9 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -580,8 +580,9 @@ Python module with the same interface, but (hopefully) 
faster.")
      `(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda _
-             (invoke "python" "setup.py" "pytest"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "python" "setup.py" "pytest")))))))
     (native-inputs
      (list python-hypothesis python-pytest python-pytest-runner))
     (propagated-inputs



reply via email to

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