guix-commits
[Top][All Lists]
Advanced

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

06/07: gnu: python-h2: Respect "--without-tests".


From: guix-commits
Subject: 06/07: gnu: python-h2: Respect "--without-tests".
Date: Thu, 8 Jul 2021 15:23:15 -0400 (EDT)

mothacehe pushed a commit to branch master
in repository guix.

commit f78975c8e098e38494a697aa88c9ca5395975041
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Thu Jul 8 17:41:58 2021 +0200

    gnu: python-h2: Respect "--without-tests".
    
    * gnu/packages/python-web.scm
      (python-h2)[arguments]<#:phases>{check}: Respect #:tests?.
    
    Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
 gnu/packages/python-web.scm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index d175fbb..8ec6864 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -937,9 +937,10 @@ and that could be anything you want.")
      `(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda* (#:key inputs outputs #:allow-other-keys)
-             (add-installed-pythonpath inputs outputs)
-             (invoke "pytest" "-vv" "test"))))))
+           (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               (invoke "pytest" "-vv" "test")))))))
     (native-inputs
      `(("python-pytest" ,python-pytest)))
     (propagated-inputs



reply via email to

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