1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-15 11:30:44 +02:00

gnu: python-keyring: Make tests skippable.

* gnu/packages/python-crypto.scm (python-keyring)[arguments]: In custom
'check phase only run tests when tests? is #true.
This commit is contained in:
Efraim Flashner 2021-02-14 14:19:21 +02:00
parent d9784b1a63
commit f7c966ae02
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -382,8 +382,10 @@ do what is needed for client/server Kerberos authentication based on
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest"))))))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest"))
#t)))))
(native-inputs
`(("python-toml" ,python-toml)
("python-pytest" ,python-pytest)