lol

Merge pull request #10296 from FRidh/pandas

python packages updates

+54 -47
+54 -47
pkgs/top-level/python-packages.nix
··· 5936 5936 url = "https://bitbucket.org/edgimar/crecord/get/${builtins.substring 0 12 rev}.tar.gz"; 5937 5937 sha256 = "02003fa5620ec40a5ad0d7cede2e65c2cb398a7fe4e1ee26bd3396a87d63ad35"; 5938 5938 }; 5939 - 5939 + 5940 5940 # crecord comes as just a bare directory 5941 5941 configurePhase = " "; 5942 5942 buildPhase = "${python.executable} -m compileall crecord"; ··· 5947 5947 5948 5948 # there ain't none 5949 5949 doCheck = false; 5950 - 5950 + 5951 5951 meta = { 5952 5952 description = "Mercurial extension for selecting graphically which files/hunk/lines to commit"; 5953 5953 homepage = https://bitbucket.org/edgimar/crecord; ··· 8098 8098 description = "A load testing tool"; 8099 8099 }; 8100 8100 }; 8101 - 8101 + 8102 8102 llvmlite = buildPythonPackage rec { 8103 8103 name = "llvmlite-${version}"; 8104 8104 version = "0.7.0"; 8105 - 8105 + 8106 8106 disabled = isPyPy; 8107 - 8108 - src = pkgs.fetchurl { 8107 + 8108 + src = pkgs.fetchurl { 8109 8109 url = "https://pypi.python.org/packages/source/l/llvmlite/${name}.tar.gz"; 8110 8110 sha256 = "6d780980da05d2d82465991bce42c1b4625018d67feae17c672c6a9d5ad0bb1a"; 8111 8111 }; 8112 8112 8113 8113 llvm = pkgs.llvm; 8114 - 8114 + 8115 8115 propagatedBuildInputs = with self; [ llvm ] ++ optional (!isPy34) enum34; 8116 8116 8117 8117 # Disable static linking ··· 8126 8126 checkPhase = '' 8127 8127 ${self.python.executable} runtests.py 8128 8128 ''; 8129 - 8129 + 8130 8130 meta = { 8131 8131 description = "A lightweight LLVM python binding for writing JIT compilers"; 8132 8132 homepage = "http://llvmlite.pydata.org/"; ··· 8134 8134 maintainers = with maintainers; [ fridh ]; 8135 8135 }; 8136 8136 }; 8137 - 8137 + 8138 8138 lockfile = buildPythonPackage rec { 8139 8139 name = "lockfile-0.9.1"; 8140 8140 ··· 9313 9313 modules.sqlite3 9314 9314 ]; 9315 9315 9316 - # Test does not work on Py3k because it calls 'python'. 9317 - # https://github.com/nipy/nibabel/issues/341 9318 - 9319 - # Test fails with numpy 1.10.1: ERROR: nibabel.tests.test_proxy_api.TestPARRECAPI.test_proxy_slicing 9320 - # See https://github.com/nipy/nibabel/pull/358 9321 - # and https://github.com/numpy/numpy/issues/6491 9322 9316 preCheck = '' 9317 + # Test does not work on Py3k because it calls 'python'. 9318 + # https://github.com/nipy/nibabel/issues/341 9323 9319 rm nisext/tests/test_testers.py 9320 + # Test fails with numpy 1.10.1: ERROR: nibabel.tests.test_proxy_api.TestPARRECAPI.test_proxy_slicing 9321 + # See https://github.com/nipy/nibabel/pull/358 9322 + # and https://github.com/numpy/numpy/issues/6491 9324 9323 rm nibabel/tests/test_proxy_api.py 9324 + # https://github.com/nipy/nibabel/issues/366 9325 + rm nisext/tests/test_doctest_markup.py 9325 9326 ''; 9326 9327 9327 9328 meta = { ··· 9337 9338 9338 9339 # Uses python 2 print. Master seems to be Py3 compatible. 9339 9340 disabled = isPy3k; 9340 - 9341 + 9341 9342 src = pkgs.fetchurl { 9342 9343 url = "http://pypi.python.org/packages/source/n/nipype/${name}.tar.gz"; 9343 9344 md5 = "480013709633a6d292e2ef668443e0c9"; ··· 9387 9388 }; 9388 9389 }; 9389 9390 9391 + nose-exclude = buildPythonPackage rec { 9392 + name = "nose-exclude-${version}"; 9393 + version = "0.4.1"; 9394 + 9395 + src = pkgs.fetchurl { 9396 + url = "https://pypi.python.org/packages/source/n/nose-exclude/${name}.tar.gz"; 9397 + sha256 = "44466a9bcb56d2e568750f91504d1278c74eabb259a305b06e975b87b51635da"; 9398 + }; 9399 + 9400 + propagatedBuildInputs = with self; [ nose ]; 9401 + 9402 + meta = { 9403 + license = licenses.lgpl21; 9404 + description = "Exclude specific directories from nosetests runs"; 9405 + homepage = https://github.com/kgrandis/nose-exclude; 9406 + maintainers = with maintainers; [ fridh ]; 9407 + }; 9408 + 9409 + }; 9410 + 9390 9411 nose-selecttests = buildPythonPackage rec { 9391 9412 version = "0.4"; 9392 9413 name = "nose-selecttests-${version}"; ··· 9568 9589 numba = buildPythonPackage rec { 9569 9590 version = "0.21.0"; 9570 9591 name = "numba-${version}"; 9571 - 9592 + 9572 9593 src = pkgs.fetchurl { 9573 9594 url = "https://pypi.python.org/packages/source/n/numba/${name}.tar.gz"; 9574 9595 sha256 = "1806d2f6ad49ad891e9ac6fed0cc0b0489cbfcd9ba2dc81081c1c30091e77604"; 9575 9596 }; 9576 - 9597 + 9577 9598 propagatedBuildInputs = with self; [numpy llvmlite argparse] ++ optional (!isPy3k) funcsigs ++ optional (isPy27 || isPy33) singledispatch; 9578 9599 # Future work: add Cuda support. 9579 9600 #propagatedBuildInputs = with self; [numpy llvmlite argparse pkgs.cudatoolkit6]; ··· 9590 9611 maintainers = with maintainers; [ fridh ]; 9591 9612 }; 9592 9613 }; 9593 - 9614 + 9594 9615 numexpr = buildPythonPackage rec { 9595 9616 version = "2.4.3"; 9596 9617 name = "numexpr-${version}"; ··· 10038 10059 inherit (pkgs.stdenv.lib) optional optionalString; 10039 10060 inherit (pkgs.stdenv) isDarwin; 10040 10061 in buildPythonPackage rec { 10041 - name = "pandas-0.16.2"; 10062 + name = "pandas-${version}"; 10063 + version = "0.17.0"; 10042 10064 10043 10065 src = pkgs.fetchurl { 10044 10066 url = "https://pypi.python.org/packages/source/p/pandas/${name}.tar.gz"; 10045 - sha256 = "10agmrkps8bi5948vwpipfxds5kj1d076m9i0nhaxwqiw7gm6670"; 10067 + sha256 = "320d4fdf734b82adebc8fde9d8ca4b05fe155a72b6f7aa95d76242da8748d6a4"; 10046 10068 }; 10047 10069 10048 - buildInputs = [ self.nose ] ++ optional isDarwin pkgs.libcxx; 10070 + buildInputs = with self; [ nose ] ++ optional isDarwin pkgs.libcxx; 10049 10071 propagatedBuildInputs = with self; [ 10050 10072 dateutil 10051 10073 numpy ··· 10071 10093 "['pandas/src/klib', 'pandas/src', '$cpp_sdk']" 10072 10094 ''; 10073 10095 10074 - preCheck = '' 10075 - # Broken test, probably https://github.com/pydata/pandas/issues/10312: 10076 - rm pandas/io/tests/test_html.py 10077 - 10078 - # Hitting https://github.com/pydata/pandas/pull/7362 on python 10079 - # 3.3 and 3.4, not sure why: 10080 - rm pandas/tseries/tests/test_daterange.py 10081 - 10082 - # Need to skip this test; insert a line here... hacky but oh well. 10083 - badtest=pandas/tseries/tests/test_timezones.py 10084 - fixed=$TMPDIR/fixed_test_timezones.py 10085 - touch $fixed 10086 - head -n 602 $badtest > $fixed 10087 - echo ' raise nose.SkipTest("Not working")' >> $fixed 10088 - tail -n +603 $badtest >> $fixed 10089 - mv $fixed $badtest 10090 - ''; 10091 - 10096 + # The flag `-A 'not network'` will disable tests that use internet. 10097 + # The `-e` flag disables a few problematic tests. 10098 + # https://github.com/pydata/pandas/issues/11169 10099 + # https://github.com/pydata/pandas/issues/11287 10092 10100 checkPhase = '' 10093 10101 runHook preCheck 10094 - 10095 10102 # The flag `-A 'not network'` will disable tests that use internet. 10096 10103 # The `-e` flag disables a few problematic tests. 10097 10104 ${python.executable} setup.py nosetests -A 'not network' --stop \ 10098 - -e 'test_clipboard|test_series' --verbosity=3 10105 + -e 'test_data|test_excel|test_html|test_json|test_frequencies|test_frame' --verbosity=3 10099 10106 10100 10107 runHook postCheck 10101 10108 ''; ··· 13714 13721 homepage = http://scikit-learn.org; 13715 13722 license = licenses.bsd3; 13716 13723 maintainers = with maintainers; [ fridh ]; 13717 - }; 13724 + }; 13718 13725 }; 13719 13726 13720 13727 scripttest = buildPythonPackage rec { ··· 16159 16166 16160 16167 xray = buildPythonPackage rec { 16161 16168 name = "xray-${version}"; 16162 - version = "0.6.0"; 16169 + version = "0.6.1"; 16163 16170 16164 16171 src = pkgs.fetchurl { 16165 16172 url = "https://pypi.python.org/packages/source/x/xray/${name}.tar.gz"; 16166 - sha256 = "c8c4aadb0d39662a81c259bd609f42708ff31c90012a9dd0a1f9ee56a798196f"; 16173 + sha256 = "bfbc307203d5433b4da31c210773c8474c237ff97350874b6e436d452fb9dfc8"; 16167 16174 }; 16168 16175 16169 16176 buildInputs = with self; [nose]; ··· 18290 18297 version = "1.10"; 18291 18298 name = "networkx-${version}"; 18292 18299 18293 - # Currently broken on PyPy. 18300 + # Currently broken on PyPy. 18294 18301 # https://github.com/networkx/networkx/pull/1361 18295 18302 disabled = isPyPy; 18296 - 18303 + 18297 18304 src = pkgs.fetchurl { 18298 18305 url = "https://pypi.python.org/packages/source/n/networkx/${name}.tar.gz"; 18299 18306 sha256 = "ced4095ab83b7451cec1172183eff419ed32e21397ea4e1971d92a5808ed6fb8";