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

* gnu/packages/python-xyz.scm (python-ipykernel)[arguments]: Adjust
custom 'check phase to honor the #:tests? flag.
This commit is contained in:
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

View file

@ -8431,10 +8431,10 @@ (define-public python-ipykernel
`(#: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