git.iko.soy/typeable/nixpkgs
on master help sign in
python packages scikit-learn: 0.16.1 -> 0.17b1

Some tests in scikit-learn 0.16.1 fail with the new scipy 0.16 package. This is known upstream and should be fixed in the next release. https://github.com/scikit-learn/scikit-learn/issues/5045 This commit disables the tests until the next scikit-learn release.

commit9ada7aa2a8ccc8cd6b3d247a5038d311264852e0 authorFrederik Rietdijk <fridh@fridh.nl> dateSat 15 Aug 2015, 11:26 (11 years ago) parentfb0bb02
1 file changed+3−14
pkgs/top-level/python-packages.nix+3−14
pkgs/top-level/python-packages.nix+3−14
@@ -13437,27 +13437,16 @@ let
1343713437
1343813438 scikitlearn = buildPythonPackage rec {
1343913439 name = "scikit-learn-${version}";
13440− version = "0.16.1";
13440+ version = "0.17b1";
1344113441
1344213442 src = pkgs.fetchurl {
1344313443 url = "https://github.com/scikit-learn/scikit-learn/archive/${version}.tar.gz";
13444− sha256 = "140skabifgc7lvvj873pnzlwx0ni6q8qkrsyad2ccjb3h8rxzkih";
13444+ sha256 = "b5965c888ae44fe3f5a1b15297e5d8e254a41d1848df99e00efc2fc643e6e8f2";
1344513445 };
1344613446
1344713447 buildInputs = with self; [ nose pillow pkgs.gfortran pkgs.glibcLocales ];
1344813448 propagatedBuildInputs = with self; [ numpy scipy pkgs.openblas ];
1344913449
13450− patches = [
13451− (pkgs.fetchurl {
13452− url = "https://patch-diff.githubusercontent.com/raw/scikit-learn/scikit-learn/pull/5197.patch";
13453− sha256 = "1b261wcvim6s0sqmd20jylwz09g5bh3xzhagjlslmv4q50qxpvkg";
13454− })
13455− ];
13456−
13457− postPatch = optionalString stdenv.isi686 ''
13458− sed -i -e "s|test_standard_scaler_numerical_stability|_skip_test_standard_scaler_numerical_stability|g" sklearn/preprocessing/tests/test_data.py
13459− '';
13460−
1346113450 buildPhase = ''
1346213451 ${self.python.executable} setup.py build_ext -i --fcompiler='gnu95'
1346313452 '';
@@ -13471,7 +13460,7 @@ let
1347113460 homepage = http://scikit-learn.org;
1347213461 license = licenses.bsd3;
1347313462 maintainers = with maintainers; [ fridh ];
13474− };
13463+ };
1347513464 };
1347613465
1347713466 scripttest = buildPythonPackage rec {