Merge pull request #10255 from FRidh/numpy

pythonPackages numpy: 1.9.2 -> 1.10.1 and enable for Python 3.5

+42 -22
+42 -22
pkgs/top-level/python-packages.nix
··· 6181 }; 6182 6183 buildInputs = with self; [ nose mock ]; 6184 - propagatedBuildInputs = with self; [ pyflakes pep8 mccabe ]; 6185 6186 # 3 failing tests 6187 #doCheck = false; ··· 9234 9235 # Test does not work on Py3k because it calls 'python'. 9236 # https://github.com/nipy/nibabel/issues/341 9237 preCheck = '' 9238 rm nisext/tests/test_testers.py 9239 ''; 9240 9241 meta = { ··· 9552 pkgName = "numpy"; 9553 }; 9554 in buildPythonPackage ( rec { 9555 - name = "numpy-1.9.2"; 9556 9557 src = pkgs.fetchurl { 9558 url = "mirror://sourceforge/numpy/${name}.tar.gz"; 9559 - sha256 = "0apgmsk9jlaphb2dp1zaxqzdxkf69h1y3iw2d1pcnkj31cmmypij"; 9560 }; 9561 9562 - disabled = isPyPy || isPy35; # WIP 9563 9564 preConfigure = '' 9565 sed -i 's/-faltivec//' numpy/distutils/system_info.py ··· 11528 }; 11529 11530 pyflakes = buildPythonPackage rec { 11531 - name = "pyflakes-0.9.2"; 11532 11533 src = pkgs.fetchurl { 11534 url = "http://pypi.python.org/packages/source/p/pyflakes/${name}.tar.gz"; 11535 - sha256 = "0pvawddspdq0y22dbraq5gld9qr6rwa7zhmpfhl2b7v9rqiiqs82"; 11536 }; 11537 11538 buildInputs = with self; [ unittest2 ]; ··· 11547 }; 11548 }; 11549 11550 11551 pygeoip = pythonPackages.buildPythonPackage rec { 11552 name = "pygeoip-0.3.2"; ··· 13536 pkgName = "numpy"; 13537 }; 13538 in buildPythonPackage rec { 13539 - name = "scipy-0.15.1"; 13540 13541 src = pkgs.fetchurl { 13542 url = "http://pypi.python.org/packages/source/s/scipy/${name}.tar.gz"; 13543 - sha256 = "16i5iksaas3m0hgbxrxpgsyri4a9ncbwbiazlhx5d6lynz1wn4m2"; 13544 }; 13545 13546 buildInputs = [ pkgs.gfortran self.nose ]; ··· 13563 13564 scikitlearn = buildPythonPackage rec { 13565 name = "scikit-learn-${version}"; 13566 - version = "0.16.1"; 13567 13568 src = pkgs.fetchurl { 13569 url = "https://github.com/scikit-learn/scikit-learn/archive/${version}.tar.gz"; 13570 - sha256 = "140skabifgc7lvvj873pnzlwx0ni6q8qkrsyad2ccjb3h8rxzkih"; 13571 }; 13572 13573 buildInputs = with self; [ nose pillow pkgs.gfortran pkgs.glibcLocales ]; 13574 propagatedBuildInputs = with self; [ numpy scipy pkgs.openblas ]; 13575 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 - 13587 buildPhase = '' 13588 ${self.python.executable} setup.py build_ext -i --fcompiler='gnu95' 13589 ''; ··· 13597 homepage = http://scikit-learn.org; 13598 license = licenses.bsd3; 13599 maintainers = with maintainers; [ fridh ]; 13600 - }; 13601 }; 13602 13603 scripttest = buildPythonPackage rec {
··· 6181 }; 6182 6183 buildInputs = with self; [ nose mock ]; 6184 + propagatedBuildInputs = with self; [ pyflakes_0_8 pep8 mccabe ]; 6185 6186 # 3 failing tests 6187 #doCheck = false; ··· 9234 9235 # Test does not work on Py3k because it calls 'python'. 9236 # 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 9241 preCheck = '' 9242 rm nisext/tests/test_testers.py 9243 + rm nibabel/tests/test_proxy_api.py 9244 ''; 9245 9246 meta = { ··· 9557 pkgName = "numpy"; 9558 }; 9559 in buildPythonPackage ( rec { 9560 + name = "numpy-${version}"; 9561 + version = "1.10.1"; 9562 9563 src = pkgs.fetchurl { 9564 url = "mirror://sourceforge/numpy/${name}.tar.gz"; 9565 + sha256 = "8b9f453f29ce96a14e625100d3dcf8926301d36c5f622623bf8820e748510858"; 9566 }; 9567 9568 + disabled = isPyPy; # WIP 9569 9570 preConfigure = '' 9571 sed -i 's/-faltivec//' numpy/distutils/system_info.py ··· 11534 }; 11535 11536 pyflakes = buildPythonPackage rec { 11537 + name = "pyflakes-${version}"; 11538 + version = "1.0.0"; 11539 11540 src = pkgs.fetchurl { 11541 url = "http://pypi.python.org/packages/source/p/pyflakes/${name}.tar.gz"; 11542 + sha256 = "f39e33a4c03beead8774f005bd3ecf0c3f2f264fa0201de965fce0aff1d34263"; 11543 }; 11544 11545 buildInputs = with self; [ unittest2 ]; ··· 11554 }; 11555 }; 11556 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 + }; 11580 11581 pygeoip = pythonPackages.buildPythonPackage rec { 11582 name = "pygeoip-0.3.2"; ··· 13566 pkgName = "numpy"; 13567 }; 13568 in buildPythonPackage rec { 13569 + name = "scipy-${version}"; 13570 + version = "0.16.0"; 13571 13572 src = pkgs.fetchurl { 13573 url = "http://pypi.python.org/packages/source/s/scipy/${name}.tar.gz"; 13574 + sha256 = "92592f40097098f3fdbe7f5855d535b29bb16719c2bb59c728bce5e7a28790e0"; 13575 }; 13576 13577 buildInputs = [ pkgs.gfortran self.nose ]; ··· 13594 13595 scikitlearn = buildPythonPackage rec { 13596 name = "scikit-learn-${version}"; 13597 + version = "0.17b1"; 13598 13599 src = pkgs.fetchurl { 13600 url = "https://github.com/scikit-learn/scikit-learn/archive/${version}.tar.gz"; 13601 + sha256 = "b5965c888ae44fe3f5a1b15297e5d8e254a41d1848df99e00efc2fc643e6e8f2"; 13602 }; 13603 13604 buildInputs = with self; [ nose pillow pkgs.gfortran pkgs.glibcLocales ]; 13605 propagatedBuildInputs = with self; [ numpy scipy pkgs.openblas ]; 13606 13607 buildPhase = '' 13608 ${self.python.executable} setup.py build_ext -i --fcompiler='gnu95' 13609 ''; ··· 13617 homepage = http://scikit-learn.org; 13618 license = licenses.bsd3; 13619 maintainers = with maintainers; [ fridh ]; 13620 + }; 13621 }; 13622 13623 scripttest = buildPythonPackage rec {