gnu: python-testtools: Honor #:tests? in check phase.

* gnu/packages/check.scm (python-testtools)[arguments]: Adjust custom
'check phase to honor #:tests.
This commit is contained in:
Efraim Flashner 2021-08-11 16:19:40 +03:00
parent db8e8eb171
commit 43bc7dd39c
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1430,11 +1430,13 @@ (define-public python-testtools
(inherit python-testtools-bootstrap)
(name "python-testtools")
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "python" "-m" "testtools.run"
"testtools.tests.test_suite"))))))
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "testtools.run"
"testtools.tests.test_suite")))))))
(propagated-inputs
`(("python-extras" ,python-extras)
("python-fixtures" ,python-fixtures)