git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #31695 from Moredread/mpi4py-3.0.0

pythonPackages.mpi4py: 2.0.0 -> 3.0.0

commit27fbf66c4a8b6d88219deee1196346759e01a902 authorSamuel Leathers <disasm@gmail.com> dateWed 15 Nov 2017, 09:19 (9 years ago) parent2fc2063fb8ff9e
1 file changed+3−27
pkgs/development/python-modules/mpi4py/default.nix+3−27
pkgs/development/python-modules/mpi4py/default.nix+3−27
@@ -1,35 +1,19 @@
1−{ stdenv, fetchPypi, python, buildPythonPackage, mpi, openssh, isPy3k, isPyPy }:
1+{ stdenv, fetchPypi, python, buildPythonPackage, mpi }:
22
33buildPythonPackage rec {
44 pname = "mpi4py";
5− version = "2.0.0";
5+ version = "3.0.0";
66 name = "${pname}-${version}";
77
88 src = fetchPypi {
99 inherit pname version;
10− sha256 = "10fb01595rg17ycz08a23v24akm25d13srsy2rnixam7a5ca0hv5";
10+ sha256 = "1mzgd26dfv4vwbci8gq77ss9f0x26i9aqzq9b9vs9ndxhlnv0mxl";
1111 };
1212
1313 passthru = {
1414 inherit mpi;
1515 };
1616
17− # Rename libm.so -> libm.so.6 in test
18− # See: https://bitbucket.org/mpi4py/mpi4py/issues/28/test_dltestdl-test-failure
19− patches = [
20− ./tests.patch
21− ];
22−
23− # The tests in the `test_spawn` module fail in the chroot build environment.
24− # However, they do pass in a pure, or non-pure nix-shell. Hence, we
25− # deactivate these particular tests.
26− # Unfortunately, the command-line arguments to `./setup.py test` are not
27− # correctly passed to the test-runner. Hence, these arguments are patched
28− # directly into `setup.py`.
29− prePatch = ''
30− sed 's/err = main(cmd.args or \[\])/err = main(cmd.args or ["-v", "-e", "test_spawn"])/' -i setup.py
31− '';
32−
3317 configurePhase = "";
3418
3519 installPhase = ''
@@ -49,14 +33,6 @@ buildPythonPackage rec {
4933 setupPyBuildFlags = ["--mpicc=${mpi}/bin/mpicc"];
5034
5135 buildInputs = [ mpi ];
52− # Requires openssh for tests. Tests of dependent packages will also fail,
53− # if openssh is not present. E.g. h5py with mpi support.
54− propagatedBuildInputs = [ openssh ];
55−
56− disabled = isPy3k || isPyPy;
57−
58− # Timing out communicating between processes when sandboxing enabled.
59− doCheck = false;
6036
6137 meta = {
6238 description =