2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
pytest7CheckHook,
|
|
|
|
requests,
|
2021-10-14 00:43:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rangehttpserver";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.4.0";
|
2021-10-14 00:43:12 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "danvk";
|
|
|
|
repo = "RangeHTTPServer";
|
2023-03-15 16:39:30 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-wvGJ5wHYLb7wJUGgurkdRTABV6kTH7/GXzXgpd0Ypbc=";
|
2021-10-14 00:43:12 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
pytest7CheckHook
|
2021-10-14 00:43:12 +00:00
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "RangeHTTPServer" ];
|
2021-10-14 00:43:12 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "SimpleHTTPServer with support for Range requests";
|
|
|
|
homepage = "https://github.com/danvk/RangeHTTPServer";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/danvk/RangeHTTPServer/releases/tag/${version}";
|
2021-10-14 00:43:12 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|