guix-commits
[Top][All Lists]
Advanced

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

04/05: gnu: python-identify: Honor #:tests in check phase.


From: guix-commits
Subject: 04/05: gnu: python-identify: Honor #:tests in check phase.
Date: Mon, 9 Aug 2021 13:21:20 -0400 (EDT)

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

commit 6a29b83423bd36c0d82a5511395323f8c4e15a99
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Aug 9 20:09:08 2021 +0300

    gnu: python-identify: Honor #:tests in check phase.
    
    * gnu/packages/python-xyz.scm (python-identify)[arguments]: Honor tests?.
---
 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 b160996..5223f5a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20751,8 +20751,9 @@ library to allow local file system access via 
@code{file://} URLs.")
          ;; system-error "utime" "~A" ("No such file or directory")
          (delete 'ensure-no-mtimes-pre-1980)
          (replace 'check
-           (lambda _
-             (invoke "pytest" "-vv"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "pytest" "-vv")))))))
     (native-inputs
      `(("python-coverage" ,python-coverage)
        ("python-pytest" ,python-pytest)))



reply via email to

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