657f08b14c
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
57 lines
1 KiB
Nix
57 lines
1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
cython,
|
|
setuptools,
|
|
mpi,
|
|
openssh,
|
|
pytestCheckHook,
|
|
mpiCheckPhaseHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mpi4py";
|
|
version = "4.0.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "mpi4py";
|
|
owner = "mpi4py";
|
|
rev = version;
|
|
hash = "sha256-pH4z+hyoFOSAUlXv9EKO54/SM5HyLxv7B+18xBidH2Q=";
|
|
};
|
|
|
|
build-system = [
|
|
cython
|
|
setuptools
|
|
mpi
|
|
];
|
|
dependencies = [
|
|
mpi
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
openssh
|
|
mpiCheckPhaseHook
|
|
];
|
|
doCheck = true;
|
|
disabledTestPaths = [
|
|
# Almost all tests in this file fail (TODO: Report about this upstream..)
|
|
"test/test_spawn.py"
|
|
];
|
|
|
|
passthru = {
|
|
inherit mpi;
|
|
};
|
|
|
|
meta = {
|
|
description = "Python bindings for the Message Passing Interface standard";
|
|
homepage = "https://github.com/mpi4py/mpi4py";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ doronbehar ];
|
|
};
|
|
}
|