1 { lib, fetchPypi, fetchpatch, python, buildPythonPackage
2 , mpi, mpiCheckPhaseHook, openssh
5 buildPythonPackage rec {
11 inherit pname version;
12 hash = "sha256-pwbnbbklUTXC+10e9Uy097DkrZ4zy62n3idiYgXyoVM=";
20 substituteInPlace test/test_spawn.py --replace \
21 "unittest.skipMPI('openmpi(<3.0.0)')" \
22 "unittest.skipMPI('openmpi')"
28 mkdir -p "$out/${python.sitePackages}"
29 export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
31 ${python}/bin/${python.executable} setup.py install \
32 --install-lib=$out/${python.sitePackages} \
36 # sometimes packages specify where files should be installed outside the usual
37 # python lib prefix, we override that back so all infrastructure (setup hooks)
41 nativeBuildInputs = [ mpi ];
43 __darwinAllowLocalNetworking = true;
45 nativeCheckInputs = [ openssh mpiCheckPhaseHook ];
48 description = "Python bindings for the Message Passing Interface standard";
49 homepage = "https://github.com/mpi4py/mpi4py";
50 license = licenses.bsd2;