From 188e32b2e29c601a6c9855b6adc4aa566f678d82 Mon Sep 17 00:00:00 2001 From: Maxime Devos Date: Thu, 8 Jul 2021 17:24:22 +0200 Subject: [PATCH 5/7] gnu: python-h11: Respect "--without-tests". * gnu/packages/python-web.scm (python-h11)[arguments]<#:phases>{check}: Respect #:tests?. --- gnu/packages/python-web.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index b535b54e4d..f529bd0dd2 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -908,8 +908,9 @@ for use in Python programs that implement HTTP/2.") `(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ - (invoke "pytest" "-vv")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv"))))))) (native-inputs `(("python-pytest" ,python-pytest))) (home-page "https://github.com/python-hyper/h11") -- 2.32.0