gnu: python-asgiref: Honor #:tests? flag.
* gnu/packages/python-web.scm (python-asgiref)[arguments]: Adjust custom 'check phase to honor the #:tests? flag.master
parent
ee41859cc8
commit
013c061ce5
gnu/packages
|
@ -327,10 +327,12 @@ comes with a SOCKS proxy client.")
|
|||
(base32 "1saqgpgbdvb8awzm0f0640j0im55hkrfzvcw683cgqw4ni3apwaf"))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
'(#:phases (modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(invoke "pytest" "-vv"))))))
|
||||
'(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(invoke "pytest" "-vv")))))))
|
||||
(native-inputs
|
||||
`(("python-pytest" ,python-pytest)
|
||||
("python-pytest-asyncio" ,python-pytest-asyncio)))
|
||||
|
|
Reference in New Issue