pythonPackages.mpi4py: 3.0.1 -> 3.0.2

This commit is contained in:
Orivej Desh 2019-06-28 03:38:28 +00:00
parent bfc789118b
commit 02d750348a

View file

@ -1,24 +1,18 @@
{ stdenv, fetchPypi, fetchpatch, python, buildPythonPackage, mpi, openssh }: { stdenv, fetchPypi, python, buildPythonPackage, mpi, openssh }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "mpi4py"; pname = "mpi4py";
version = "3.0.1"; version = "3.0.2";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0ld8rjmsjr0dklvj2g1gr3ax32sdq0xjxyh0cspknc1i36waajb5"; sha256 = "1q28xl36difma1wq0acq111cqxjya32kn3lxp6fbidz3wg8jkmpq";
}; };
passthru = { passthru = {
inherit mpi; 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 = '' postPatch = ''
substituteInPlace test/test_spawn.py --replace \ substituteInPlace test/test_spawn.py --replace \
"unittest.skipMPI('openmpi(<3.0.0)')" \ "unittest.skipMPI('openmpi(<3.0.0)')" \