2025-02-15 19:03:27 +02:00

58 lines
1000 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
cython,
setuptools,
mpi,
pytestCheckHook,
mpiCheckPhaseHook,
}:
buildPythonPackage rec {
pname = "mpi4py";
version = "4.0.3";
pyproject = true;
src = fetchFromGitHub {
repo = "mpi4py";
owner = "mpi4py";
tag = version;
hash = "sha256-eN/tjlnNla6RHYOXcprVVqtec1nwCEGn+MBcV/5mHJg=";
};
build-system = [
cython
setuptools
];
nativeBuildInputs = [
mpi
];
dependencies = [
mpi
];
pythonImportsCheck = [ "mpi4py" ];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
pytestCheckHook
mpiCheckPhaseHook
];
passthru = {
inherit mpi;
};
meta = {
description = "Python bindings for the Message Passing Interface standard";
homepage = "https://github.com/mpi4py/mpi4py";
changelog = "https://github.com/mpi4py/mpi4py/blob/${src.tag}/CHANGES.rst";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ doronbehar ];
};
}