efraim pushed a commit to branch master
in repository guix.

commit a56b000745029bc457f01ad87d2e36f83823337b
Author: Efraim Flashner <[email protected]>
AuthorDate: Wed Oct 27 20:05:15 2021 +0300

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a7b1e0e..d5b21d8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -4362,8 +4362,9 @@ software version simply.")
     (arguments
      `(#:phases (modify-phases %standard-phases
                   (replace 'check
-                    (lambda _
-                      (invoke "pytest"))))))
+                    (lambda* (#:key tests? #:allow-other-keys)
+                      (when tests?
+                        (invoke "pytest")))))))
     (propagated-inputs
      `(("python-wrapt" ,python-wrapt)))
     (native-inputs

Reply via email to