guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: python-ipykernel: Honor #:tests? flag.


From: guix-commits
Subject: 01/02: gnu: python-ipykernel: Honor #:tests? flag.
Date: Sun, 31 Oct 2021 10:39:29 -0400 (EDT)

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

commit 757c9425ba40df98ffe9eb36973be11c13c57d6d
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Oct 31 16:29:33 2021 +0200

    gnu: python-ipykernel: Honor #:tests? flag.
    
    * gnu/packages/python-xyz.scm (python-ipykernel)[arguments]: Adjust
    custom 'check phase to honor the #:tests? flag.
---
 gnu/packages/python-xyz.scm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5f46e52..f534531 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8431,10 +8431,10 @@ installing @code{kernelspec}s for use with Jupyter 
frontends.")
      `(#:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda _
-             (setenv "HOME" "/tmp")
-             (invoke "pytest" "-v")
-             #t))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (setenv "HOME" "/tmp")
+               (invoke "pytest" "-v"))))
          (add-after 'install 'set-python-file-name
            (lambda* (#:key outputs #:allow-other-keys)
              ;; Record the absolute file name of the 'python' executable in



reply via email to

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