0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-19 00:20:32 +03:00
nixpkgs/pkgs/development/python-modules/rangehttpserver/default.nix

41 lines
889 B
Nix
Raw Normal View History

2024-05-22 16:01:06 +02:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytest7CheckHook,
requests,
}:
buildPythonPackage rec {
pname = "rangehttpserver";
version = "1.3.3";
format = "pyproject";
src = fetchFromGitHub {
owner = "danvk";
repo = "RangeHTTPServer";
rev = "refs/tags/${version}";
hash = "sha256-ZXEbis37QO8t05JQ2qQQf5rkUSxq3DwzR3khAJkZ5W0=";
};
2024-05-22 16:01:06 +02:00
nativeBuildInputs = [ setuptools ];
2023-08-01 00:01:21 -07:00
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
pytest7CheckHook
requests
];
2024-05-22 16:01:06 +02:00
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 ];
};
}