python3Packages.mpi-pytest: 2025.4.0 -> 2025.5.0

mpi-pytest now support OpenMPI forking mode, postPatch is no more needed.

changelog: https://github.com/firedrakeproject/mpi-pytest/releases/tag/v2025.5.0

diff: https://github.com/firedrakeproject/mpi-pytest/compare/v2025.4.0...v2025.5.0
This commit is contained in:
R. Ryantm
2025-06-03 16:46:15 +08:00
committed by qbisi
parent 3603bcb66c
commit bce8b8ba73
@@ -11,23 +11,16 @@
buildPythonPackage rec {
pname = "mpi-pytest";
version = "2025.4.0";
version = "2025.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "firedrakeproject";
repo = "mpi-pytest";
tag = "v${version}";
hash = "sha256-r9UB5H+qAJc6k2SVAiOCI2yRDLNv2zKRmfrAan+cX9I=";
hash = "sha256-Eq53rCM3xwY30BuGUaTH4Nuloc/9kGJMFhspLH04zqE=";
};
# A temporary fixup to support fork mode with openmpi implementation
# See https://github.com/firedrakeproject/mpi-pytest/pull/17
postPatch = lib.optionalString (mpi4py.mpi.pname == "openmpi") ''
substituteInPlace pytest_mpi/plugin.py \
--replace-fail '"-genv", CHILD_PROCESS_FLAG, "1"' '"-x", f"{CHILD_PROCESS_FLAG}=1"'
'';
build-system = [
setuptools
];