Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d5e18499d936
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ea2c573b3b6a
Choose a head ref
  • 6 commits
  • 5 files changed
  • 1 contributor

Commits on May 16, 2017

  1. Copy the full SHA
    9d5038e View commit details
  2. Copy the full SHA
    b78940b View commit details
  3. Copy the full SHA
    50fb47d View commit details
  4. Copy the full SHA
    9174bd2 View commit details
  5. Copy the full SHA
    c9b4a2f View commit details
  6. Copy the full SHA
    ea2c573 View commit details
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{lib, python, buildPythonPackage, isPy27, isPyPy, gfortran, nose, blas}:
{lib, fetchurl, python, buildPythonPackage, isPy27, isPyPy, gfortran, nose, blas}:

args:
buildPythonPackage rec {
pname = "numpy";
version = "1.12.1";
name = "${pname}-${version}";

let
inherit (args) version;
in buildPythonPackage (args // rec {

name = "numpy-${version}";
src = fetchurl {
url = "mirror://pypi/n/numpy/numpy-${version}.zip";
sha256 = "a65266a4ad6ec8936a1bc85ce51f8600634a31a258b722c9274a80ff189d9542";
};

disabled = isPyPy;
buildInputs = args.buildInputs or [ gfortran nose ];
propagatedBuildInputs = args.propagatedBuildInputs or [ passthru.blas ];
buildInputs = [ gfortran nose blas ];

patches = lib.optionals (python.hasDistutilsCxxPatch or false) [
# See cpython 2.7 patches.
@@ -26,8 +27,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 = ${blas}/include
library_dirs = ${blas}/lib
EOF
'';

@@ -56,5 +57,5 @@ in buildPythonPackage (args // rec {
description = "Scientific tools for Python";
homepage = "http://numpy.scipy.org/";
maintainers = with lib.maintainers; [ fridh ];
} // (args.meta or {});
})
};
}
21 changes: 9 additions & 12 deletions pkgs/development/python-modules/pandas/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{ buildPythonPackage
, fetchPypi
, python
, stdenv
, fetchurl
, nose
, pytest
, glibcLocales
, cython
, dateutil
@@ -27,16 +28,16 @@ let
inherit (stdenv) isDarwin;
in buildPythonPackage rec {
pname = "pandas";
version = "0.19.2";
version = "0.20.1";
name = "${pname}-${version}";

src = fetchurl {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
sha256 = "6f0f4f598c2b16746803c8bafef7c721c57e4844da752d36240c0acf97658014";
src = fetchPypi {
inherit pname version;
sha256 = "42707365577ef69f7c9c168ddcf045df2957595a9ee71bc13c7997eecb96b190";
};

LC_ALL = "en_US.UTF-8";
buildInputs = [ nose glibcLocales ] ++ optional isDarwin libcxx;
buildInputs = [ pytest glibcLocales ] ++ optional isDarwin libcxx;
propagatedBuildInputs = [
cython
dateutil
@@ -70,14 +71,10 @@ in buildPythonPackage rec {
'';

# The flag `-A 'not network'` will disable tests that use internet.
# The `-e` flag disables a few problematic tests.
checkPhase = ''
runHook preCheck
# The flag `-w` provides the initial directory to search for tests.
# The flag `-A 'not network'` will disable tests that use internet.
nosetests -w $out/${python.sitePackages}/pandas --no-path-adjustment -A 'not slow and not network' \
--verbosity=3
runHook postCheck
py.test $out/${python.sitePackages}/pandas --skip-slow --skip-network
runHook postCheck
'';

meta = {
Original file line number Diff line number Diff line change
@@ -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 {});
})
};
}
50 changes: 6 additions & 44 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -4282,6 +4282,10 @@ in {
${if stdenv.cc.isClang or false then ''--exclude="(cpdef_extern_func|libcpp_algo)"'' else ""}
'';

# Disable tests temporarily
# https://github.com/cython/cython/issues/1676
doCheck = false;

meta = {
description = "An optimising static compiler for both the Python programming language and the extended Cython programming language";
platforms = platforms.all;
@@ -15810,30 +15814,10 @@ in {
};
};


buildNumpyPackage = callPackage ../development/python-modules/numpy.nix {
gfortran = pkgs.gfortran;
numpy = callPackage ../development/python-modules/numpy {
blas = pkgs.openblasCompat;
};

numpy = self.numpy_1_11;

numpy_1_10 = self.buildNumpyPackage rec {
version = "1.10.4";
src = pkgs.fetchurl {
url = "mirror://pypi/n/numpy/numpy-${version}.tar.gz";
sha256 = "7356e98fbcc529e8d540666f5a919912752e569150e9a4f8d869c686f14c720b";
};
};

numpy_1_11 = self.buildNumpyPackage rec {
version = "1.11.3";
src = pkgs.fetchurl {
url = "mirror://pypi/n/numpy/numpy-${version}.zip";
sha256 = "2e0fc5248246a64628656fe14fcab0a959741a2820e003bd15538226501b82f7";
};
};

numpydoc = buildPythonPackage rec {
pname = "numpydoc";
name = "${pname}-${version}";
@@ -22756,29 +22740,7 @@ in {
};
};

buildScipyPackage = callPackage ../development/python-modules/scipy.nix {
gfortran = pkgs.gfortran;
};

scipy = self.scipy_0_18;

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 = callPackage ../development/python-modules/scipy { };

scikitimage = buildPythonPackage rec {
name = "scikit-image-${version}";