guix-commits
[Top][All Lists]
Advanced

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

09/12: gnu: python-flake8: Do not delete and recreate check phase.


From: guix-commits
Subject: 09/12: gnu: python-flake8: Do not delete and recreate check phase.
Date: Thu, 6 May 2021 13:16:06 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit 9e22ab252f7c106f0aadcb697d22fa08eaf476e3
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Thu May 6 15:50:16 2021 +0200

    gnu: python-flake8: Do not delete and recreate check phase.
    
    * gnu/packages/python-xyz.scm (python-flake8)[arguments]: Replace check 
phase
    instead of deleting.  Remove trailing #t.
---
 gnu/packages/python-xyz.scm | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index fbaec6e..75a0cc8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9009,12 +9009,10 @@ complexity of Python source code.")
     (arguments
      `(#:phases
        (modify-phases %standard-phases
-         (delete 'check)
-         (add-after 'install 'check
+         (replace 'check
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (add-installed-pythonpath inputs outputs)
-             (invoke "pytest" "-v")
-             #t)))))
+             (invoke "pytest" "-v"))))))
     (propagated-inputs
      `(("python-pycodestyle" ,python-pycodestyle)
        ("python-entrypoints" ,python-entrypoints)



reply via email to

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