From ec27aafcd32da20059c5d5545878af2f9395da13 Mon Sep 17 00:00:00 2001 From: "Paul A. Patience" Date: Mon, 2 May 2022 21:16:58 +0000 Subject: gnu: python-meshio: Honor #:tests? flag. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- gnu/packages/simulation.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gnu/packages/simulation.scm') 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 -- cgit v1.2.3