From 70833c2ec8b200dbc704b93ff17d78a1e3cc1eed Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 9 Aug 2021 13:51:30 +0300 Subject: gnu: python-markupsafe: Honor #:tests in check phase. * gnu/pacakges/python-xyz.scm (python-markupsafe)[arguments]: Honor #:tests flag. --- gnu/packages/python-xyz.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 611451ef55..848efb23d7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -3757,8 +3757,9 @@ e.g. filters, callbacks and errbacks can all be promises.") (arguments `(#: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/mitsuhiko/markupsafe") -- cgit v1.2.3