From d418784dbdce5d920cb385665d26a5d8427f4cc9 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 9 Aug 2021 10:02:02 +0300 Subject: gnu: python-docopt: Honor #:tests? in check phase. * gnu/packages/python-xyz.scm (python-docopt)[arguments]: In custom 'check phase honor #:tests?. --- gnu/packages/python-xyz.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0890792c03..95245ec0af 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -11572,7 +11572,9 @@ automatically detect a wide range of file encodings.") `(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ (invoke "py.test")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "py.test"))))))) (home-page "http://docopt.org") (synopsis "Command-line interface description language for Python") (description "This library allows the user to define a command-line -- cgit v1.2.3