mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-01 07:16:39 +01:00
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>
This commit is contained in:
parent
23cb0c203c
commit
b3435d3ed1
1 changed files with 10 additions and 9 deletions
|
@ -565,7 +565,7 @@ (define-public python-fenics-dijitso
|
|||
(sha256
|
||||
(base32
|
||||
"0lhqsq8ypdak0ahr2jnyvg07yrqp6wicjxi6k56zx24wp3qg60sc"))))
|
||||
(build-system python-build-system)
|
||||
(build-system pyproject-build-system)
|
||||
(inputs
|
||||
(list openmpi python-numpy))
|
||||
(native-inputs
|
||||
|
@ -578,15 +578,16 @@ (define-public python-fenics-dijitso
|
|||
(add-after 'build 'mpi-setup
|
||||
,%openmpi-setup)
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(setenv "HOME" "/tmp")
|
||||
(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")))))))
|
||||
(invoke "./runtests.sh"))))))))
|
||||
(home-page "https://bitbucket.org/fenics-project/dijitso/")
|
||||
(synopsis "Distributed just-in-time building of shared libraries")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue