Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pytest-httpserver / default.nix
blob5759f180ff70d0fcfffdf8d4070d0d1fd5643fa7
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , poetry-core
5 , pytestCheckHook
6 , pythonOlder
7 , requests
8 , toml
9 , werkzeug
12 buildPythonPackage rec {
13   pname = "pytest-httpserver";
14   version = "1.0.10";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "csernazs";
21     repo = "pytest-httpserver";
22     rev = "refs/tags/${version}";
23     hash = "sha256-KCsZs4MGENByF/wB+aj3yvMp7lssHNVKx8jLhDQ1u4k=";
24   };
26   nativeBuildInputs = [
27     poetry-core
28   ];
30   propagatedBuildInputs = [
31     werkzeug
32   ];
34   nativeCheckInputs = [
35     pytestCheckHook
36     requests
37     toml
38   ];
40   __darwinAllowLocalNetworking = true;
42   disabledTests = [
43     "test_wait_raise_assertion_false" # racy
44   ];
46   pythonImportsCheck = [
47     "pytest_httpserver"
48   ];
50   meta = with lib; {
51     description = "HTTP server for pytest to test HTTP clients";
52     homepage = "https://www.github.com/csernazs/pytest-httpserver";
53     changelog = "https://github.com/csernazs/pytest-httpserver/blob/${version}/CHANGES.rst";
54     license = with licenses; [ mit ];
55     maintainers = with maintainers; [ fab ];
56   };