guix-commits
[Top][All Lists]
Advanced

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

03/07: gnu: python-hyperframe: Respect "--without-tests".


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

mothacehe pushed a commit to branch master
in repository guix.

commit a5a90a98d8664c92bb8d744abfde6c68c342d364
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Thu Jul 8 17:12:46 2021 +0200

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

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 656f310..cdc5c13 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -42,6 +42,7 @@
 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;; Copyright © 2021 Ekaitz Zarraga <ekaitz@elenq.tech>
 ;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
+;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -843,9 +844,10 @@ follow links and submit forms.  It doesn’t do JavaScript.")
      `(#: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)))
     (home-page "https://github.com/python-hyper/hyperframe";)



reply via email to

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