From 6fb805811ddc192021f35d9f6ba415de20d7c306 Mon Sep 17 00:00:00 2001 From: Maxime Devos Date: Thu, 8 Jul 2021 17:23:53 +0200 Subject: [PATCH 4/7] gnu: python-hpack: Respect "--without-tests". * gnu/packages/python-web.scm (python-hpack)[arguments]<#:phases>{check}: Respect #:tests?. --- gnu/packages/python-web.scm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 0cccb55f07..b535b54e4d 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -877,12 +877,13 @@ into HTTP/2 frames.") `(#:phases (modify-phases %standard-phases (replace 'check - (lambda* (#:key inputs outputs #:allow-other-keys) - (add-installed-pythonpath inputs outputs) - (invoke "pytest" "-vv" "test" "-k" - ;; This test will be fixed in the next version. See: - ;; https://github.com/python-hyper/hpack/issues/168. - "not test_get_by_index_out_of_range")))))) + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "-vv" "test" "-k" + ;; This test will be fixed in the next version. See: + ;; https://github.com/python-hyper/hpack/issues/168. + "not test_get_by_index_out_of_range"))))))) (native-inputs `(("python-pytest" ,python-pytest))) (home-page "https://hyper.rtfd.org") -- 2.32.0