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>
This commit is contained in:
Paul A. Patience 2022-05-02 21:16:58 +00:00 committed by Ludovic Courtès
parent c76ba27662
commit ec27aafcd3
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -798,12 +798,12 @@ (define-public python-meshio
(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