guix-commits
[Top][All Lists]
Advanced

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

02/07: gnu: macs: Update check phase.


From: guix-commits
Subject: 02/07: gnu: macs: Update check phase.
Date: Mon, 9 Nov 2020 04:36:59 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit 4dcd19d3ff143e7ef5ed1584a9ace65c348d1dfa
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Nov 9 10:36:14 2020 +0200

    gnu: macs: Update check phase.
    
    * gnu/packages/bioinformatics.scm (macs)[arguments]: Don't delete 'check
    phase before using custom 'check phase.
---
 gnu/packages/bioinformatics.scm | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index a456b2b..010742b 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -4480,11 +4480,12 @@ experiments.")
     (arguments
      `(#:phases
        (modify-phases %standard-phases
-         (delete 'check)
-         (add-after 'install 'check
-           (lambda* (#:key inputs outputs #:allow-other-keys)
-             (add-installed-pythonpath inputs outputs)
-             (invoke "pytest" "-v"))))))
+         (replace 'check
+           (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               (invoke "pytest" "-v"))
+             #t)))))
     (inputs
      `(("python-numpy" ,python-numpy)))
     (native-inputs



reply via email to

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