1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-16 20:10:39 +02:00

gnu: python-jedi: Allow test phase to be skipped.

* gnu/packages/python-xyz.scm (python-jedi)[arguments]: Wrap custom
'check phase tests with check for tests? keyword.
This commit is contained in:
Efraim Flashner 2021-03-04 16:19:19 +02:00
parent b12974ec52
commit ab10e1086c
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -13945,9 +13945,11 @@ characters, mouse support, and auto suggestions.")
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(setenv "HOME" "/tmp")
(invoke "python" "-m" "pytest" "-vv"))))))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "HOME" "/tmp")
(invoke "python" "-m" "pytest" "-vv"))
#t)))))
(native-inputs
`(("python-pytest" ,python-pytest)
("python-docopt" ,python-docopt)))