From 2487d91ce980e46e23848db2e79b6a1c0b43fdaa Mon Sep 17 00:00:00 2001 From: Maxime Devos Date: Thu, 8 Jul 2021 17:41:58 +0200 Subject: [PATCH 6/7] gnu: python-h2: Respect "--without-tests". * gnu/packages/python-web.scm (python-h2)[arguments]<#:phases>{check}: Respect #:tests?. --- gnu/packages/python-web.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index f529bd0dd2..7d3c717a61 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -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 -- 2.32.0