python2Packages.numpy: fix build on darwin

By applying the old patch (compatible with 1.18.x and older). Also
refactor expression to make presence of the "old" version more
explicit.
This commit is contained in:
Dmitry Kalinkin
2020-07-12 21:49:31 -04:00
parent ec74a02bde
commit 1e4290b78c
3 changed files with 129 additions and 10 deletions
+5 -10
View File
@@ -4926,16 +4926,11 @@ in {
Nuitka = callPackage ../development/python-modules/nuitka { };
numpy = let
numpy_ = callPackage ../development/python-modules/numpy { };
numpy_2 = numpy_.overridePythonAttrs(oldAttrs: rec {
version = "1.16.5";
src = oldAttrs.src.override {
inherit version;
sha256 = "8bb452d94e964b312205b0de1238dd7209da452343653ab214b5d681780e7a0c";
};
});
in if pythonOlder "3.5" then numpy_2 else numpy_;
numpy =
if pythonOlder "3.5" then
callPackage ../development/python-modules/numpy/1.16.nix { }
else
callPackage ../development/python-modules/numpy { };
numpydoc = callPackage ../development/python-modules/numpydoc { };