about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2017-05-16 09:22:46 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2017-05-16 13:37:01 +0200
commitea2c573b3b6a4c0f498cada3c1756f767162683c (patch)
treef907160eeb6f516462281d85bc8b38149bd49a80 /pkgs/development/python-modules
parentc9b4a2f319914fe31eb8eee866ad47052824c697 (diff)
downloadnixlib-ea2c573b3b6a4c0f498cada3c1756f767162683c.tar
nixlib-ea2c573b3b6a4c0f498cada3c1756f767162683c.tar.gz
nixlib-ea2c573b3b6a4c0f498cada3c1756f767162683c.tar.bz2
nixlib-ea2c573b3b6a4c0f498cada3c1756f767162683c.tar.lz
nixlib-ea2c573b3b6a4c0f498cada3c1756f767162683c.tar.xz
nixlib-ea2c573b3b6a4c0f498cada3c1756f767162683c.tar.zst
nixlib-ea2c573b3b6a4c0f498cada3c1756f767162683c.zip
python.pkgs.scipy: move expression and keep only a single version
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/scipy/default.nix (renamed from pkgs/development/python-modules/scipy.nix)29
1 files changed, 15 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/scipy.nix b/pkgs/development/python-modules/scipy/default.nix
index 023335a5e347..a7428f134a7a 100644
--- a/pkgs/development/python-modules/scipy.nix
+++ b/pkgs/development/python-modules/scipy/default.nix
@@ -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
-  inherit (args) version;
-  inherit (args) numpy;
-in buildPythonPackage (args // rec {
-
-  name = "scipy-${version}";
+  src = fetchurl {
+    url = "mirror://pypi/s/scipy/scipy-${version}.zip";
+    sha256 = "4190d34bf9a09626cd42100bbb12e3d96b2daf1a8a3244e991263eb693732122";
+  };
 
-  buildInputs = (args.buildInputs or [ gfortran nose ]);
-  propagatedBuildInputs = (args.propagatedBuildInputs or [ passthru.blas numpy]);
+  buildInputs = [ gfortran nose numpy.blas ];
+  propagatedBuildInputs = [ numpy ];
 
   # Remove tests because of broken wrapper
   prePatch = ''
@@ -25,8 +26,8 @@ in buildPythonPackage (args // rec {
     echo "Creating site.cfg file..."
     cat << EOF > site.cfg
     [openblas]
-    include_dirs = ${passthru.blas}/include
-    library_dirs = ${passthru.blas}/lib
+    include_dirs = ${numpy.blas}/include
+    library_dirs = ${numpy.blas}/lib
     EOF
   '';
 
@@ -48,5 +49,5 @@ in buildPythonPackage (args // rec {
     description = "SciPy (pronounced 'Sigh Pie') is open-source software for mathematics, science, and engineering. ";
     homepage = http://www.scipy.org/;
     maintainers = with lib.maintainers; [ fridh ];
-  } // (args.meta or {});
-})
+  };
+}