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