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
53 lines
1005 B
Nix
53 lines
1005 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
mpi4py,
|
|
pytest,
|
|
pytestCheckHook,
|
|
mpiCheckPhaseHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mpi-pytest";
|
|
version = "2025.5.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "firedrakeproject";
|
|
repo = "mpi-pytest";
|
|
tag = "v${version}";
|
|
hash = "sha256-Eq53rCM3xwY30BuGUaTH4Nuloc/9kGJMFhspLH04zqE=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
mpi4py
|
|
pytest
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pytest_mpi"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
mpiCheckPhaseHook
|
|
mpi4py.mpi
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
homepage = "https://github.com/firedrakeproject/mpi-pytest";
|
|
description = "Pytest plugin that lets you run tests in parallel with MPI";
|
|
changelog = "https://github.com/firedrakeproject/mpi-pytest/releases/tag/${src.tag}";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ qbisi ];
|
|
};
|
|
}
|