1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, setuptools
5, pytestCheckHook
6, requests
7}:
8
9buildPythonPackage rec {
10 pname = "rangehttpserver";
11 version = "1.3.3";
12 format = "pyproject";
13
14 src = fetchFromGitHub {
15 owner = "danvk";
16 repo = "RangeHTTPServer";
17 rev = "refs/tags/${version}";
18 hash = "sha256-ZXEbis37QO8t05JQ2qQQf5rkUSxq3DwzR3khAJkZ5W0=";
19 };
20
21 nativeBuildInputs = [
22 setuptools
23 ];
24
25 __darwinAllowLocalNetworking = true;
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 requests
30 ];
31
32 pythonImportsCheck = [
33 "RangeHTTPServer"
34 ];
35
36 meta = with lib; {
37 description = "SimpleHTTPServer with support for Range requests";
38 homepage = "https://github.com/danvk/RangeHTTPServer";
39 changelog = "https://github.com/danvk/RangeHTTPServer/releases/tag/${version}";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ fab ];
42 };
43}