me
/
guix
Archived
1
0
Fork 0

gnu: python-asgiref: Honor #:tests? flag.

* gnu/packages/python-web.scm (python-asgiref)[arguments]: Adjust custom
'check phase to honor the #:tests? flag.
master
Efraim Flashner 2021-10-27 19:40:36 +03:00
parent ee41859cc8
commit 013c061ce5
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 6 additions and 4 deletions

View File

@ -327,10 +327,12 @@ comes with a SOCKS proxy client.")
(base32 "1saqgpgbdvb8awzm0f0640j0im55hkrfzvcw683cgqw4ni3apwaf")))) (base32 "1saqgpgbdvb8awzm0f0640j0im55hkrfzvcw683cgqw4ni3apwaf"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
'(#:phases (modify-phases %standard-phases '(#:phases
(replace 'check (modify-phases %standard-phases
(lambda _ (replace 'check
(invoke "pytest" "-vv")))))) (lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs (native-inputs
`(("python-pytest" ,python-pytest) `(("python-pytest" ,python-pytest)
("python-pytest-asyncio" ,python-pytest-asyncio))) ("python-pytest-asyncio" ,python-pytest-asyncio)))