···11---- numpy/lib/tests/test_format.py 2015-08-11 12:03:43.000000000 -0500
22-+++ numpy/lib/tests/test_format_no_large_files.py 2015-11-03 16:03:30.328084827 -0600
33-@@ -810,32 +810,5 @@
44- format.write_array_header_1_0(s, d)
55- assert_raises(ValueError, format.read_array_header_1_0, s)
66-77--
88--def test_large_file_support():
99-- from nose import SkipTest
1010-- if (sys.platform == 'win32' or sys.platform == 'cygwin'):
1111-- raise SkipTest("Unknown if Windows has sparse filesystems")
1212-- # try creating a large sparse file
1313-- tf_name = os.path.join(tempdir, 'sparse_file')
1414-- try:
1515-- # seek past end would work too, but linux truncate somewhat
1616-- # increases the chances that we have a sparse filesystem and can
1717-- # avoid actually writing 5GB
1818-- import subprocess as sp
1919-- sp.check_call(["truncate", "-s", "5368709120", tf_name])
2020-- except:
2121-- raise SkipTest("Could not create 5GB large file")
2222-- # write a small array to the end
2323-- with open(tf_name, "wb") as f:
2424-- f.seek(5368709120)
2525-- d = np.arange(5)
2626-- np.save(f, d)
2727-- # read it back
2828-- with open(tf_name, "rb") as f:
2929-- f.seek(5368709120)
3030-- r = np.load(f)
3131-- assert_array_equal(r, d)
3232--
3333--
3434- if __name__ == "__main__":
3535- run_module_suite()
+11-6
pkgs/top-level/python-packages.nix
···1188111881 };
1188211882 in buildPythonPackage ( rec {
1188311883 name = "numpy-${version}";
1188411884- version = "1.10.2";
1188411884+ version = "1.10.4";
11885118851188611886 src = pkgs.fetchurl {
1188711887- url = "mirror://sourceforge/numpy/${name}.tar.gz";
1188811888- sha256 = "23a3befdf955db4d616f8bb77b324680a80a323e0c42a7e8d7388ef578d8ffa9";
1188711887+ url = "https://pypi.python.org/packages/source/n/numpy/${name}.tar.gz";
1188811888+ sha256 = "7356e98fbcc529e8d540666f5a919912752e569150e9a4f8d869c686f14c720b";
1188911889 };
11890118901189111891 disabled = isPyPy; # WIP
···1189911899 buildInputs = [ pkgs.gfortran self.nose ];
1190011900 propagatedBuildInputs = [ support.openblas ];
11901119011190211902- # This patch removes the test of large file support, which takes forever
1190211902+ # Disable failing test_f2py test.
1190311903+ # f2py couldn't be found by test,
1190411904+ # even though it was used successfully to build numpy
1190511905+1190611906+ # The large file support test is disabled because it takes forever
1190311907 # and can cause the machine to run out of disk space when run.
1190411904- patchPhase = ''
1190511905- patch -p0 < ${../development/python-modules/numpy-no-large-files.patch}
1190811908+ prePatch = ''
1190911909+ sed -i 's/test_f2py/donttest/' numpy/tests/test_scripts.py
1191011910+ sed -i 's/test_large_file_support/donttest/' numpy/lib/tests/test_format.py
1190611911 '';
11907119121190811913 meta = {