···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()
+6
pkgs/top-level/python-packages.nix
···1045510455 buildInputs = [ pkgs.gfortran self.nose ];
1045610456 propagatedBuildInputs = [ support.openblas ];
10457104571045810458+ # This patch removes the test of large file support, which takes forever
1045910459+ # and can cause the machine to run out of disk space when run.
1046010460+ patchPhase = ''
1046110461+ patch -p0 < ${../development/python-modules/numpy-no-large-files.patch}
1046210462+ '';
1046310463+1045810464 meta = {
1045910465 description = "Scientific tools for Python";
1046010466 homepage = "http://numpy.scipy.org/";