guix-commits
[Top][All Lists]
Advanced

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

02/07: gnu: python-watchgod: Respect "--without-tests".


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

mothacehe pushed a commit to branch master
in repository guix.

commit d0b3bb9df7dd04449d7d9a4d0e7f4b67b255a3e6
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Thu Jul 8 17:07:49 2021 +0200

    gnu: python-watchgod: Respect "--without-tests".
    
    * gnu/packages/python-xyz.scm
      (python-watchgod)[arguments]<#:phases>{check}: Respect #:tests?.
    
    Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
 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 5a44043..2bb33db 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23348,8 +23348,9 @@ but portable.")
      `(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda _
-             (invoke "pytest" "-vv"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "pytest" "-vv")))))))
     (native-inputs
      `(("python-coverage" ,python-coverage)
        ("python-docutils" ,python-docutils)



reply via email to

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