From 3d6040c13522122df496c862c0ca2ddf8b28b71c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Fri, 26 Nov 2021 15:52:57 +0200 Subject: gnu: toot: Honor the #:tests? flag. * gnu/packages/mastodon.scm (toot)[arguments]: Adjust custom 'check phase to honor the #:tests? flag. --- gnu/packages/mastodon.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gnu/packages/mastodon.scm b/gnu/packages/mastodon.scm index f23ff062fa..4847bbeed9 100644 --- a/gnu/packages/mastodon.scm +++ b/gnu/packages/mastodon.scm @@ -52,9 +52,10 @@ (define-public toot '(#:phases (modify-phases %standard-phases (replace 'check - (lambda* (#:key inputs outputs #:allow-other-keys) - (add-installed-pythonpath inputs outputs) - (invoke "py.test")))))) + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "py.test"))))))) (native-inputs `(("python-pytest" ,python-pytest))) (inputs -- cgit v1.2.3