depot/third_party/nixpkgs/pkgs/development/python-modules/pysendfile/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

37 lines
799 B
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pysendfile";
version = "2.0.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-UQpBSycJhvujx5y3bZCkyRDHAb+0P/mDpdTpKEYFDhc=";
};
build-system = [ setuptools ];
# Tests depend on asynchat and asyncore
doCheck = false;
pythonImportsCheck = [ "sendfile" ];
meta = with lib; {
description = "Python interface to sendfile(2)";
homepage = "https://github.com/giampaolo/pysendfile";
changelog = "https://github.com/giampaolo/pysendfile/blob/release-${version}/HISTORY.rst";
license = licenses.mit;
maintainers = with maintainers; [ ];
broken = stdenv.isDarwin;
};
}