guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#55060] [PATCH v2 3/6] gnu: python-meshio: Honor #:tests? flag.


From: Paul A. Patience
Subject: [bug#55060] [PATCH v2 3/6] gnu: python-meshio: Honor #:tests? flag.
Date: Fri, 22 Apr 2022 12:41:42 +0000

* gnu/packages/simulation.scm (python-meshio)[arguments]: Adjust custom
'check' phase to honor the #:tests? flag.
---
 gnu/packages/simulation.scm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index fa246f9fb7..17d0a1352c 100644
--- a/gnu/packages/simulation.scm
+++ b/gnu/packages/simulation.scm
@@ -799,9 +799,10 @@ (define-public python-meshio
      `(#: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? outputs inputs #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               (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
--
2.35.1







reply via email to

[Prev in Thread] Current Thread [Next in Thread]