1{ lib 2, buildPythonPackage 3, fetchPypi 4, python 5}: 6 7buildPythonPackage rec { 8 pname = "pysendfile"; 9 version = "2.0.1"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "05qf0m32isflln1zjgxlpw0wf469lj86vdwwqyizp1h94x5l22ji"; 14 }; 15 16 checkPhase = '' 17 # this test takes too long 18 sed -i 's/test_big_file/noop/' test/test_sendfile.py 19 ${python.executable} test/test_sendfile.py 20 ''; 21 22 meta = with lib; { 23 homepage = "https://github.com/giampaolo/pysendfile"; 24 description = "A Python interface to sendfile(2)"; 25 license = licenses.mit; 26 }; 27 28}