@@ -6181,7 +6181,7 @@ let
61816181 };
61826182
61836183 buildInputs = with self; [ nose mock ];
6184− propagatedBuildInputs = with self; [ pyflakes pep8 mccabe ];
6184+ propagatedBuildInputs = with self; [ pyflakes_0_8 pep8 mccabe ];
61856185
61866186 # 3 failing tests
61876187 #doCheck = false;
@@ -9234,8 +9234,13 @@ let
92349234
92359235 # Test does not work on Py3k because it calls 'python'.
92369236 # https://github.com/nipy/nibabel/issues/341
9237+
9238+ # Test fails with numpy 1.10.1: ERROR: nibabel.tests.test_proxy_api.TestPARRECAPI.test_proxy_slicing
9239+ # See https://github.com/nipy/nibabel/pull/358
9240+ # and https://github.com/numpy/numpy/issues/6491
92379241 preCheck = ''
92389242 rm nisext/tests/test_testers.py
9243+ rm nibabel/tests/test_proxy_api.py
92399244 '';
92409245
92419246 meta = {
@@ -9552,14 +9557,15 @@ let
95529557 pkgName = "numpy";
95539558 };
95549559 in buildPythonPackage ( rec {
9555− name = "numpy-1.9.2";
9560+ name = "numpy-${version}";
9561+ version = "1.10.1";
95569562
95579563 src = pkgs.fetchurl {
95589564 url = "mirror://sourceforge/numpy/${name}.tar.gz";
9559− sha256 = "0apgmsk9jlaphb2dp1zaxqzdxkf69h1y3iw2d1pcnkj31cmmypij";
9565+ sha256 = "8b9f453f29ce96a14e625100d3dcf8926301d36c5f622623bf8820e748510858";
95609566 };
95619567
9562− disabled = isPyPy || isPy35; # WIP
9568+ disabled = isPyPy; # WIP
95639569
95649570 preConfigure = ''
95659571 sed -i 's/-faltivec//' numpy/distutils/system_info.py
@@ -11528,11 +11534,12 @@ let
1152811534 };
1152911535
1153011536 pyflakes = buildPythonPackage rec {
11531− name = "pyflakes-0.9.2";
11537+ name = "pyflakes-${version}";
11538+ version = "1.0.0";
1153211539
1153311540 src = pkgs.fetchurl {
1153411541 url = "http://pypi.python.org/packages/source/p/pyflakes/${name}.tar.gz";
11535− sha256 = "0pvawddspdq0y22dbraq5gld9qr6rwa7zhmpfhl2b7v9rqiiqs82";
11542+ sha256 = "f39e33a4c03beead8774f005bd3ecf0c3f2f264fa0201de965fce0aff1d34263";
1153611543 };
1153711544
1153811545 buildInputs = with self; [ unittest2 ];
@@ -11547,6 +11554,29 @@ let
1154711554 };
1154811555 };
1154911556
11557+ pyflakes_0_8 = buildPythonPackage rec {
11558+ # Pyflakes 0.8 is needed for flake8, which is needed for OpenStack Nova
11559+ # https://github.com/NixOS/nixpkgs/pull/10399
11560+ name = "pyflakes-${version}";
11561+ version = "0.8.1";
11562+
11563+ src = pkgs.fetchurl {
11564+ url = "http://pypi.python.org/packages/source/p/pyflakes/${name}.tar.gz";
11565+ sha256 = "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z";
11566+ };
11567+
11568+ buildInputs = with self; [ unittest2 ];
11569+
11570+ doCheck = !isPyPy;
11571+
11572+ disabled = isPy35; # Not supported
11573+
11574+ meta = {
11575+ homepage = https://launchpad.net/pyflakes;
11576+ description = "A simple program which checks Python source files for errors";
11577+ license = licenses.mit;
11578+ };
11579+ };
1155011580
1155111581 pygeoip = pythonPackages.buildPythonPackage rec {
1155211582 name = "pygeoip-0.3.2";
@@ -13536,11 +13566,12 @@ let
1353613566 pkgName = "numpy";
1353713567 };
1353813568 in buildPythonPackage rec {
13539− name = "scipy-0.15.1";
13569+ name = "scipy-${version}";
13570+ version = "0.16.0";
1354013571
1354113572 src = pkgs.fetchurl {
1354213573 url = "http://pypi.python.org/packages/source/s/scipy/${name}.tar.gz";
13543− sha256 = "16i5iksaas3m0hgbxrxpgsyri4a9ncbwbiazlhx5d6lynz1wn4m2";
13574+ sha256 = "92592f40097098f3fdbe7f5855d535b29bb16719c2bb59c728bce5e7a28790e0";
1354413575 };
1354513576
1354613577 buildInputs = [ pkgs.gfortran self.nose ];
@@ -13563,27 +13594,16 @@ let
1356313594
1356413595 scikitlearn = buildPythonPackage rec {
1356513596 name = "scikit-learn-${version}";
13566− version = "0.16.1";
13597+ version = "0.17b1";
1356713598
1356813599 src = pkgs.fetchurl {
1356913600 url = "https://github.com/scikit-learn/scikit-learn/archive/${version}.tar.gz";
13570− sha256 = "140skabifgc7lvvj873pnzlwx0ni6q8qkrsyad2ccjb3h8rxzkih";
13601+ sha256 = "b5965c888ae44fe3f5a1b15297e5d8e254a41d1848df99e00efc2fc643e6e8f2";
1357113602 };
1357213603
1357313604 buildInputs = with self; [ nose pillow pkgs.gfortran pkgs.glibcLocales ];
1357413605 propagatedBuildInputs = with self; [ numpy scipy pkgs.openblas ];
1357513606
13576− patches = [
13577− (pkgs.fetchurl {
13578− url = "https://patch-diff.githubusercontent.com/raw/scikit-learn/scikit-learn/pull/5197.patch";
13579− sha256 = "1b261wcvim6s0sqmd20jylwz09g5bh3xzhagjlslmv4q50qxpvkg";
13580− })
13581− ];
13582−
13583− postPatch = optionalString stdenv.isi686 ''
13584− sed -i -e "s|test_standard_scaler_numerical_stability|_skip_test_standard_scaler_numerical_stability|g" sklearn/preprocessing/tests/test_data.py
13585− '';
13586−
1358713607 buildPhase = ''
1358813608 ${self.python.executable} setup.py build_ext -i --fcompiler='gnu95'
1358913609 '';
@@ -13597,7 +13617,7 @@ let
1359713617 homepage = http://scikit-learn.org;
1359813618 license = licenses.bsd3;
1359913619 maintainers = with maintainers; [ fridh ];
13600− };
13620+ };
1360113621 };
1360213622
1360313623 scripttest = buildPythonPackage rec {