me
/
guix
Archived
1
0
Fork 0

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

* gnu/packages/check.scm (python-testtools)[arguments]: Adjust custom
'check phase to honor #:tests.
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
1 changed files with 7 additions and 5 deletions

View File

@ -1430,11 +1430,13 @@ subprocess and see the output as well as any file modifications.")
(inherit python-testtools-bootstrap) (inherit python-testtools-bootstrap)
(name "python-testtools") (name "python-testtools")
(arguments (arguments
`(#:phases (modify-phases %standard-phases `(#:phases
(replace 'check (modify-phases %standard-phases
(lambda _ (replace 'check
(invoke "python" "-m" "testtools.run" (lambda* (#:key tests? #:allow-other-keys)
"testtools.tests.test_suite")))))) (when tests?
(invoke "python" "-m" "testtools.run"
"testtools.tests.test_suite")))))))
(propagated-inputs (propagated-inputs
`(("python-extras" ,python-extras) `(("python-extras" ,python-extras)
("python-fixtures" ,python-fixtures) ("python-fixtures" ,python-fixtures)