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
(package
(name "python-mpi4py")
(version "3.1.4")
(version "4.1.0")
(source
(origin
(method git-fetch)
@ -539,21 +539,31 @@ only provides @code{MPI_THREAD_FUNNELED}.")))
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1iy6087w7r2ip2kzinvfvjvqy7idbk0jn9ing44q1ggmgk2kx8sc"))))
(base32 "1r4n2d3nacpa6sq18jp0xk4a81ha0iipgvlsdv0bhfmdvgpv2vqy"))))
(build-system pyproject-build-system)
(arguments
(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
#~(modify-phases %standard-phases
(add-after 'build 'mpi-setup #$%openmpi-setup)
(add-before 'check 'pre-check
(lambda _
;; Skip BaseTestSpawn class (causes error 'ompi_dpm_dyn_init()
;; failed --> Returned "Unreachable"' in chroot environment).
(substitute* "test/test_spawn.py"
(("unittest.skipMPI\\('openmpi\\(<3.0.0\\)'\\)")
"unittest.skipMPI('openmpi')")))))))
(native-inputs (list python-cython-0 python-pytest python-setuptools))
(add-before 'check 'pre-check
(lambda _
;; Skip BaseTestSpawn class (causes error 'ompi_dpm_dyn_init()
;; failed --> Returned "Unreachable"' in chroot environment).
(substitute* "test/test_spawn.py"
(("unittest.skipMPI\\('openmpi\\(<3.0.0\\)'\\)")
"unittest.skipMPI('openmpi')"))))
(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))
(properties '((updater-extra-inputs "openmpi")))
(home-page "https://github.com/mpi4py/mpi4py")