diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2021-11-26 15:52:57 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2021-11-26 15:52:57 +0200 |
commit | 3d6040c13522122df496c862c0ca2ddf8b28b71c (patch) | |
tree | 1cf0199982b8aa0c2a1205c1e1ad1c9feb38e36b /gnu | |
parent | ac4c0b193315d9c61b71749370ad55091154bfdb (diff) | |
download | guix-3d6040c13522122df496c862c0ca2ddf8b28b71c.tar.gz guix-3d6040c13522122df496c862c0ca2ddf8b28b71c.zip |
gnu: toot: Honor the #:tests? flag.
* gnu/packages/mastodon.scm (toot)[arguments]: Adjust custom 'check
phase to honor the #:tests? flag.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/mastodon.scm | 7 |
1 files 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 @@ '(#: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 |