diff options
author | Paul A. Patience <paul@apatience.com> | 2022-05-02 21:16:58 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-05-23 16:24:46 +0200 |
commit | ec27aafcd32da20059c5d5545878af2f9395da13 (patch) | |
tree | a3db7c9945942e508dd112cac4e071803e08bfac /gnu | |
parent | c76ba2766237af97e6b4bbe32c9b0d0d0b7c7152 (diff) | |
download | guix-ec27aafcd32da20059c5d5545878af2f9395da13.tar.gz |
gnu: python-meshio: Honor #:tests? flag.
* gnu/packages/simulation.scm (python-meshio)[arguments]: Adjust custom 'check' phase to honor the #:tests? flag. Remove unnecessary 'add-installed-pythonpath' call. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/simulation.scm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index cbd4a1d3e7..b7b8010ef2 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm @@ -798,12 +798,12 @@ river flooding.") (list python-importlib-metadata python-numpy)) (arguments - `(#:phases + '(#:phases (modify-phases %standard-phases (replace 'check - (lambda* (#:key outputs inputs #:allow-other-keys) - (add-installed-pythonpath inputs outputs) - (invoke "python" "-m" "pytest" "-v" "tests")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "-m" "pytest" "-v" "tests"))))))) (home-page "https://github.com/nschloe/meshio") (synopsis "I/O for mesh files") (description "There are various file formats available for |