Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 nativeCheckInputs = [ 26 pytestCheckHook 27 requests 28 ]; 29 30 pythonImportsCheck = [ 31 "RangeHTTPServer" 32 ]; 33 34 meta = with lib; { 35 description = "SimpleHTTPServer with support for Range requests"; 36 homepage = "https://github.com/danvk/RangeHTTPServer"; 37 changelog = "https://github.com/danvk/RangeHTTPServer/releases/tag/${version}"; 38 license = licenses.asl20; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}