me
/
guix
Archived
1
0
Fork 0

gnu: python-ipykernel: Honor #:tests? flag.

* gnu/packages/python-xyz.scm (python-ipykernel)[arguments]: Adjust
custom 'check phase to honor the #:tests? flag.
master
Efraim Flashner 2021-10-31 16:29:33 +02:00
parent 74bef015a7
commit 757c9425ba
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 4 additions and 4 deletions

View File

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