python.pkgs.scipy: move expression and keep only a single version
This commit is contained in:
parent
c9b4a2f319
commit
ea2c573b3b
@ -1,16 +1,17 @@
|
|||||||
{lib, python, buildPythonPackage, isPyPy, gfortran, nose}:
|
{lib, fetchurl, python, buildPythonPackage, isPyPy, gfortran, nose, numpy}:
|
||||||
|
|
||||||
args:
|
buildPythonPackage rec {
|
||||||
|
pname = "scipy";
|
||||||
|
version = "0.19.0";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
let
|
src = fetchurl {
|
||||||
inherit (args) version;
|
url = "mirror://pypi/s/scipy/scipy-${version}.zip";
|
||||||
inherit (args) numpy;
|
sha256 = "4190d34bf9a09626cd42100bbb12e3d96b2daf1a8a3244e991263eb693732122";
|
||||||
in buildPythonPackage (args // rec {
|
};
|
||||||
|
|
||||||
name = "scipy-${version}";
|
buildInputs = [ gfortran nose numpy.blas ];
|
||||||
|
propagatedBuildInputs = [ numpy ];
|
||||||
buildInputs = (args.buildInputs or [ gfortran nose ]);
|
|
||||||
propagatedBuildInputs = (args.propagatedBuildInputs or [ passthru.blas numpy]);
|
|
||||||
|
|
||||||
# Remove tests because of broken wrapper
|
# Remove tests because of broken wrapper
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
@ -25,8 +26,8 @@ in buildPythonPackage (args // rec {
|
|||||||
echo "Creating site.cfg file..."
|
echo "Creating site.cfg file..."
|
||||||
cat << EOF > site.cfg
|
cat << EOF > site.cfg
|
||||||
[openblas]
|
[openblas]
|
||||||
include_dirs = ${passthru.blas}/include
|
include_dirs = ${numpy.blas}/include
|
||||||
library_dirs = ${passthru.blas}/lib
|
library_dirs = ${numpy.blas}/lib
|
||||||
EOF
|
EOF
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -48,5 +49,5 @@ in buildPythonPackage (args // rec {
|
|||||||
description = "SciPy (pronounced 'Sigh Pie') is open-source software for mathematics, science, and engineering. ";
|
description = "SciPy (pronounced 'Sigh Pie') is open-source software for mathematics, science, and engineering. ";
|
||||||
homepage = http://www.scipy.org/;
|
homepage = http://www.scipy.org/;
|
||||||
maintainers = with lib.maintainers; [ fridh ];
|
maintainers = with lib.maintainers; [ fridh ];
|
||||||
} // (args.meta or {});
|
};
|
||||||
})
|
}
|
@ -22740,38 +22740,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
buildScipyPackage = callPackage ../development/python-modules/scipy.nix {
|
scipy = callPackage ../development/python-modules/scipy { };
|
||||||
gfortran = pkgs.gfortran;
|
|
||||||
};
|
|
||||||
|
|
||||||
scipy = self.scipy_0_19;
|
|
||||||
|
|
||||||
scipy_0_17 = self.buildScipyPackage rec {
|
|
||||||
version = "0.17.1";
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/s/scipy/scipy-${version}.tar.gz";
|
|
||||||
sha256 = "1b1qpfz2j2rvmlplsjbnznnxnqr9ckbmis506110ii1w07wd4k4w";
|
|
||||||
};
|
|
||||||
numpy = self.numpy;
|
|
||||||
};
|
|
||||||
|
|
||||||
scipy_0_18 = self.buildScipyPackage rec {
|
|
||||||
version = "0.18.1";
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/s/scipy/scipy-${version}.tar.gz";
|
|
||||||
sha256 = "8ab6e9c808bf2fb3e8576cd8cf07226d9cdc18b012c06d9708429a821ac6634e";
|
|
||||||
};
|
|
||||||
numpy = self.numpy;
|
|
||||||
};
|
|
||||||
|
|
||||||
scipy_0_19 = self.buildScipyPackage rec {
|
|
||||||
version = "0.19.0";
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/s/scipy/scipy-${version}.zip";
|
|
||||||
sha256 = "4190d34bf9a09626cd42100bbb12e3d96b2daf1a8a3244e991263eb693732122";
|
|
||||||
};
|
|
||||||
numpy = self.numpy;
|
|
||||||
};
|
|
||||||
|
|
||||||
scikitimage = buildPythonPackage rec {
|
scikitimage = buildPythonPackage rec {
|
||||||
name = "scikit-image-${version}";
|
name = "scikit-image-${version}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user