depot/third_party/nixpkgs/pkgs/development/python-modules/pysendfile/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

37 lines
801 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 = "A 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;
};
}