mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-23 19:19:20 -05:00
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:
parent
74bef015a7
commit
757c9425ba
1 changed files with 4 additions and 4 deletions
|
@ -8431,10 +8431,10 @@ (define-public python-ipykernel
|
||||||
`(#: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
|
||||||
|
|
Loading…
Reference in a new issue