pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / rangehttpserver / default.nix
blob9317045da4de0914cf4058eec8edd28710de4721
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   pytest7CheckHook,
7   requests,
8 }:
10 buildPythonPackage rec {
11   pname = "rangehttpserver";
12   version = "1.4.0";
13   format = "pyproject";
15   src = fetchFromGitHub {
16     owner = "danvk";
17     repo = "RangeHTTPServer";
18     rev = "refs/tags/${version}";
19     hash = "sha256-wvGJ5wHYLb7wJUGgurkdRTABV6kTH7/GXzXgpd0Ypbc=";
20   };
22   nativeBuildInputs = [ setuptools ];
24   __darwinAllowLocalNetworking = true;
26   nativeCheckInputs = [
27     pytest7CheckHook
28     requests
29   ];
31   pythonImportsCheck = [ "RangeHTTPServer" ];
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   };