gnu: python-fixtures: Honor tests? in the check phase.

* gnu/packages/check.scm (python-fixtures)[arguments]: Adjust 'check
phase to honor #:tests.
This commit is contained in:
Efraim Flashner 2021-08-11 16:14:55 +03:00
parent 02fbd89f2b
commit 5037b08b93
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1611,9 +1611,10 @@ (define-public python-fixtures
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "python" "-m" "testtools.run"
"fixtures.test_suite"))))))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "testtools.run"
"fixtures.test_suite")))))))
(propagated-inputs
;; Fixtures uses pbr at runtime to check versions, etc.
`(("python-pbr" ,python-pbr)