gnu: python-fire: Respect #:tests?

* gnu/packages/python-xyz.scm (python-fire)[arguments]:  Respect #:tests?
in the custom 'check' phase.
This commit is contained in:
Raghav Gururajan 2021-06-28 17:40:04 -04:00
parent 3fdb2d6792
commit e61874a598
No known key found for this signature in database
GPG key ID: 5F5816647F8BE551

View file

@ -276,7 +276,9 @@ (define-public python-fire
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _ (invoke "pytest"))))))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest")))))))
(inputs
`(("python-six", python-six)
("python-termcolor", python-termcolor)))