guix-commits
[Top][All Lists]
Advanced

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

01/13: gnu: python-seaborn: 'check' phase honors #:tests?.


From: guix-commits
Subject: 01/13: gnu: python-seaborn: 'check' phase honors #:tests?.
Date: Fri, 9 Jul 2021 05:59:23 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit c7cfe540181f823e20c8b8b4e23b193dcb319856
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Jul 8 17:27:23 2021 +0200

    gnu: python-seaborn: 'check' phase honors #:tests?.
    
    * gnu/packages/python-xyz.scm (python-seaborn)[arguments]: Change
    'check' phase to honor #:tests?.
---
 gnu/packages/python-xyz.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2bb33db..193c86a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8819,7 +8819,10 @@ SVG, EPS, PNG and terminal output.")
                (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
                (setenv "DISPLAY" ":1")
                #t)))
-         (replace 'check (lambda _ (invoke "pytest" "seaborn") #t)))))
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "pytest" "seaborn")))))))
     (propagated-inputs
      `(("python-pandas" ,python-pandas)
        ("python-matplotlib" ,python-matplotlib)



reply via email to

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