1{
2 lib,
3 stdenv,
4 buildPythonPackage,
5 fetchPypi,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "pysendfile";
12 version = "2.0.1";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-UQpBSycJhvujx5y3bZCkyRDHAb+0P/mDpdTpKEYFDhc=";
20 };
21
22 build-system = [ setuptools ];
23
24 # Tests depend on asynchat and asyncore
25 doCheck = false;
26
27 pythonImportsCheck = [ "sendfile" ];
28
29 meta = with lib; {
30 description = "A Python interface to sendfile(2)";
31 homepage = "https://github.com/giampaolo/pysendfile";
32 changelog = "https://github.com/giampaolo/pysendfile/blob/release-${version}/HISTORY.rst";
33 license = licenses.mit;
34 maintainers = with maintainers; [ ];
35 broken = stdenv.isDarwin;
36 };
37}