guix-commits
[Top][All Lists]
Advanced

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

08/21: gnu: python-flask: Honor #:tests in check phase.


From: guix-commits
Subject: 08/21: gnu: python-flask: Honor #:tests in check phase.
Date: Mon, 9 Aug 2021 08:29:06 -0400 (EDT)

efraim pushed a commit to branch core-updates-frozen
in repository guix.

commit 830a47e85d3282c54d5d8e7b79afd7efd96919ec
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Aug 9 13:00:26 2021 +0300

    gnu: python-flask: Honor #:tests in check phase.
    
    * gnu/packages/python-web.scm (python-flask)[arguments]: Honor #:tests flag.
---
 gnu/packages/python-web.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index fdc3aa5..10f38d8 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -2943,8 +2943,9 @@ minimum of WSGI.")
      '(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda _
-             (invoke "pytest" "-vv" "tests"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "pytest" "-vv" "tests")))))))
     (native-inputs
      `(("python-pytest" ,python-pytest)))
     (propagated-inputs



reply via email to

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