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 @@ (define-public python-jedi
`(#: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)))