Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / rangehttpserver / default.nix
blob6fbcebbffed8eae5116eff939eb15e9fe8ab2461
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , pytest7CheckHook
6 , requests
7 }:
9 buildPythonPackage rec {
10   pname = "rangehttpserver";
11   version = "1.3.3";
12   format = "pyproject";
14   src = fetchFromGitHub {
15     owner = "danvk";
16     repo = "RangeHTTPServer";
17     rev = "refs/tags/${version}";
18     hash = "sha256-ZXEbis37QO8t05JQ2qQQf5rkUSxq3DwzR3khAJkZ5W0=";
19   };
21   nativeBuildInputs = [
22     setuptools
23   ];
25   __darwinAllowLocalNetworking = true;
27   nativeCheckInputs = [
28     pytest7CheckHook
29     requests
30   ];
32   pythonImportsCheck = [
33     "RangeHTTPServer"
34   ];
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   };