summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2024-05-10 00:54:16 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-10-14 23:53:21 +0100
commitd352f27c1e95ed79894449c146589495e775ec02 (patch)
tree12202766ef5cf611df3d647e7acaf49556ff61ab
parentbc3af9e0ef3a8cc86f131af59571a049aca86fe2 (diff)
gnu: python-fenics-dijitso: Move to pyproject-build-system.
* gnu/packages/simulation.scm (python-fenics-dijitso): [build-system]: Move to pyproject-build-system. [arguments]<#:phases>: Rewrite check phase replacement to care about .guix-pytest. Change-Id: I3383f4078fbb0100e6d8257d7d84785b953ab0cf Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
-rw-r--r--gnu/packages/simulation.scm19
1 files changed, 10 insertions, 9 deletions
diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index 824318bf51..e002921679 100644
--- a/gnu/packages/simulation.scm
+++ b/gnu/packages/simulation.scm
@@ -565,7 +565,7 @@ some support for generating and analysing traffic scenarios..")
(sha256
(base32
"0lhqsq8ypdak0ahr2jnyvg07yrqp6wicjxi6k56zx24wp3qg60sc"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(inputs
(list openmpi python-numpy))
(native-inputs
@@ -578,15 +578,16 @@ some support for generating and analysing traffic scenarios..")
(add-after 'build 'mpi-setup
,%openmpi-setup)
(replace 'check
- (lambda _
+ (lambda* (#:key inputs #:allow-other-keys)
(setenv "HOME" "/tmp")
- (with-directory-excursion "test"
- ;; Disable parallel tests to avoid race condition. See
- ;; https://github.com/pytest-dev/pytest-cov/issues/237.
- (substitute* "runtests.sh"
- (("for p in 1 4 8 16; do")
- "for p in 1; do"))
- (invoke "./runtests.sh")))))))
+ (with-guix-pytest-plugin inputs
+ (with-directory-excursion "test"
+ ;; Disable parallel tests to avoid race condition. See
+ ;; https://github.com/pytest-dev/pytest-cov/issues/237.
+ (substitute* "runtests.sh"
+ (("for p in 1 4 8 16; do")
+ "for p in 1; do"))
+ (invoke "./runtests.sh"))))))))
(home-page "https://bitbucket.org/fenics-project/dijitso/")
(synopsis "Distributed just-in-time building of shared libraries")
(description