me
/
guix
Archived
1
0
Fork 0

gnu: python-h2: Respect "--without-tests".

* gnu/packages/python-web.scm
  (python-h2)[arguments]<#:phases>{check}: Respect #:tests?.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
master
Maxime Devos 2021-07-08 17:41:58 +02:00 committed by Mathieu Othacehe
parent c46c8531dd
commit f78975c8e0
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
1 changed files with 4 additions and 3 deletions

View File

@ -937,9 +937,10 @@ and that could be anything you want.")
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv" "test"))))))
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv" "test")))))))
(native-inputs
`(("python-pytest" ,python-pytest)))
(propagated-inputs