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