From c94d42d95134fc38e0b02f1c6c99e7703cf85683 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 9 Aug 2021 14:17:46 +0300 Subject: gnu: python-pytest-isort: Honor #:tests in check phase. * gnu/packages/python-check.scm (python-pytest-isort)[arguments]: Honor #:tests flag. --- gnu/packages/python-check.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 5436a878c6..740b9438ac 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -739,8 +739,9 @@ compliance.") `(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ - (invoke "pytest")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) (propagated-inputs `(("python-isort" ,python-isort) ("python-pytest" ,python-pytest))) -- cgit v1.2.3