From 013c061ce55359a0f56599490ecd462243386df6 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 27 Oct 2021 19:40:36 +0300 Subject: gnu: python-asgiref: Honor #:tests? flag. * gnu/packages/python-web.scm (python-asgiref)[arguments]: Adjust custom 'check phase to honor the #:tests? flag. --- gnu/packages/python-web.scm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 444f04394e..55d27214ba 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -327,10 +327,12 @@ comes with a SOCKS proxy client.") (base32 "1saqgpgbdvb8awzm0f0640j0im55hkrfzvcw683cgqw4ni3apwaf")))) (build-system python-build-system) (arguments - '(#:phases (modify-phases %standard-phases - (replace 'check - (lambda _ - (invoke "pytest" "-vv")))))) + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv"))))))) (native-inputs `(("python-pytest" ,python-pytest) ("python-pytest-asyncio" ,python-pytest-asyncio))) -- cgit v1.2.3