guix-commits
[Top][All Lists]
Advanced

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

04/05: gnu: python-flake8-polyfill: Honor tests? flag.


From: guix-commits
Subject: 04/05: gnu: python-flake8-polyfill: Honor tests? flag.
Date: Tue, 7 Jun 2022 02:49:40 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 0fd5222ad61fb1d2a776d018e1dd7161e50bea41
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Jun 7 09:24:14 2022 +0300

    gnu: python-flake8-polyfill: Honor tests? flag.
    
    * gnu/packages/python-xyz.scm (python-flake8-polyfill)[arguments]:
    Adjust custom 'check phase to honor the #:tests? flag.
---
 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 d5ad05f4d9..f4ae6a7e62 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10366,13 +10366,14 @@ unnecessary plus operators for explicit string 
literal concatenation.")
      '(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda _
+           (lambda* (#:key tests? #:allow-other-keys)
              ;; Be compatible with Pytest 4:
              ;; https://gitlab.com/pycqa/flake8-polyfill/merge_requests/7
              (substitute* "setup.cfg"
                (("\\[pytest\\]")
                 "[tool:pytest]"))
-             (invoke "py.test" "-v"))))))
+             (when tests?
+               (invoke "py.test" "-v")))))))
     (propagated-inputs
      (list python-flake8))
     (native-inputs



reply via email to

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