~ruther/guix-local

a6dc9f783f9da7beb0d93a761149b36d263ed6ce — Vinicius Monego 4 years ago 556a3ac
gnu: hypercorn: Honor #:tests? in 'check' phase.

* gnu/packages/python-web.scm (hypercorn)[arguments]: Honor #:tests? in
'check' phase.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
1 files changed, 4 insertions(+), 3 deletions(-)

M gnu/packages/python-web.scm
M gnu/packages/python-web.scm => gnu/packages/python-web.scm +4 -3
@@ 1650,9 1650,10 @@ RFC6455, regardless of your programming paradigm.")
     `(#:phases
       (modify-phases %standard-phases
         (replace 'check
           (lambda* (#:key inputs outputs #:allow-other-keys)
             (add-installed-pythonpath inputs outputs)
             (invoke "pytest" "-vv"))))))
           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
             (when tests?
               (add-installed-pythonpath inputs outputs)
               (invoke "python" "-m" "pytest")))))))
    ;; Propagate because Hypercorn also exposes functionality over a module.
    (propagated-inputs
     `(("python-h11" ,python-h11)