guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: python-deprecated: Honor #:tests? flag.


From: guix-commits
Subject: 01/02: gnu: python-deprecated: Honor #:tests? flag.
Date: Wed, 27 Oct 2021 13:35:26 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit a56b000745029bc457f01ad87d2e36f83823337b
Author: Efraim Flashner <efraim@flashner.co.il>
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

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