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