depot/third_party/nixpkgs/pkgs/development/python-modules/rangehttpserver/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

40 lines
889 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytest7CheckHook,
requests,
}:
buildPythonPackage rec {
pname = "rangehttpserver";
version = "1.4.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "danvk";
repo = "RangeHTTPServer";
rev = "refs/tags/${version}";
hash = "sha256-wvGJ5wHYLb7wJUGgurkdRTABV6kTH7/GXzXgpd0Ypbc=";
};
nativeBuildInputs = [ setuptools ];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
pytest7CheckHook
requests
];
pythonImportsCheck = [ "RangeHTTPServer" ];
meta = with lib; {
description = "SimpleHTTPServer with support for Range requests";
homepage = "https://github.com/danvk/RangeHTTPServer";
changelog = "https://github.com/danvk/RangeHTTPServer/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}