pythonPackages.mpi4py: add patch for openmpi-4.0.1

This commit is contained in:
Markus Kowalewski 2019-04-09 11:03:06 +02:00
parent 0297ec2412
commit 3b08f26ebd
No known key found for this signature in database
GPG Key ID: 502A248E3FB4FF48

@ -13,6 +13,12 @@ buildPythonPackage rec {
inherit mpi;
};
patches = [ ( fetchpatch {
# Upstream patch to ensure compatibility with openmpi-4.0.1
url = "https://github.com/mpi4py/mpi4py/commit/42f5e35a6a90454516c11131549a08cd766edbb0.patch";
sha256 = "1dm0i3amwj1cddzz1m9ssd7qp655c8rv1wzjs9ww3kzd90fm4w72";
})];
postPatch = ''
substituteInPlace test/test_spawn.py --replace \
"unittest.skipMPI('openmpi(<3.0.0)')" \