gnu: python-mpi4py: Update to 4.1.0.

* gnu/packages/mpi.scm (python-mpi4py): Update to 4.1.0.
[arguments]<#:phases>: Add 'check phase replacement.
<#:test-flags>: Set them.
[native-inputs]: Replace python-cython-0 by python-cython.

Change-Id: I8d1ab87bdb27607fe73c1865fd5fa3c174421840
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-09-28 18:06:44 +02:00 committed by Sharlatan Hellseher
parent c608175c5d
commit 9cd4bdd30a
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -530,7 +530,7 @@ only provides @code{MPI_THREAD_FUNNELED}.")))
(define-public python-mpi4py (define-public python-mpi4py
(package (package
(name "python-mpi4py") (name "python-mpi4py")
(version "3.1.4") (version "4.1.0")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -539,10 +539,15 @@ only provides @code{MPI_THREAD_FUNNELED}.")))
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1iy6087w7r2ip2kzinvfvjvqy7idbk0jn9ing44q1ggmgk2kx8sc")))) (base32 "1r4n2d3nacpa6sq18jp0xk4a81ha0iipgvlsdv0bhfmdvgpv2vqy"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
#:test-flags
#~(list ;; MPI errors are unrecoverable.
"--ignore=test/test_spawn.py"
"--ignore=test/test_util_pool.py"
"--ignore=demo/futures/test_futures.py")
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'build 'mpi-setup #$%openmpi-setup) (add-after 'build 'mpi-setup #$%openmpi-setup)
@ -552,8 +557,13 @@ only provides @code{MPI_THREAD_FUNNELED}.")))
;; failed --> Returned "Unreachable"' in chroot environment). ;; failed --> Returned "Unreachable"' in chroot environment).
(substitute* "test/test_spawn.py" (substitute* "test/test_spawn.py"
(("unittest.skipMPI\\('openmpi\\(<3.0.0\\)'\\)") (("unittest.skipMPI\\('openmpi\\(<3.0.0\\)'\\)")
"unittest.skipMPI('openmpi')"))))))) "unittest.skipMPI('openmpi')"))))
(native-inputs (list python-cython-0 python-pytest python-setuptools)) (replace 'check
(lambda* (#:key tests? test-flags #:allow-other-keys)
(if tests?
(apply invoke "mpiexec" "pytest" "-vv" test-flags)
(format #t "test suite not run~%")))))))
(native-inputs (list python-cython python-pytest python-setuptools))
(inputs (list openmpi)) (inputs (list openmpi))
(properties '((updater-extra-inputs "openmpi"))) (properties '((updater-extra-inputs "openmpi")))
(home-page "https://github.com/mpi4py/mpi4py") (home-page "https://github.com/mpi4py/mpi4py")