guix-commits
[Top][All Lists]
Advanced

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

14/21: gnu: python-pytest-isort: Honor #:tests in check phase.


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

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

commit c94d42d95134fc38e0b02f1c6c99e7703cf85683
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Aug 9 14:17:46 2021 +0300

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

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 5436a87..740b943 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -739,8 +739,9 @@ compliance.")
      `(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda _
-             (invoke "pytest"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "pytest")))))))
     (propagated-inputs
      `(("python-isort" ,python-isort)
        ("python-pytest" ,python-pytest)))



reply via email to

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