Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pytest-httpbin / default.nix
blobdb94f2b6e16350393dc647283ceae89d8c193e85
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , httpbin
5 , pytest
6 , pytestCheckHook
7 , pythonOlder
8 , requests
9 , six
12 buildPythonPackage rec {
13   pname = "pytest-httpbin";
14   version = "2.0.0";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "kevin1024";
21     repo = "pytest-httpbin";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-tq9nz2na94HkLACt7xB1MUanh9/JOoe2vyEm5sAq0/4=";
24   };
26   buildInputs = [
27     pytest
28   ];
30   propagatedBuildInputs = [
31     httpbin
32     six
33   ];
35   nativeCheckInputs = [
36     pytestCheckHook
37     requests
38   ];
40   disabledTests = [
41     # incompatible with flask 2.3
42     "test_redirect_location_is_https_for_secure_server"
43   ];
45   __darwinAllowLocalNetworking = true;
47   pythonImportsCheck = [
48     "pytest_httpbin"
49   ];
51   meta = with lib; {
52     description = "Test your HTTP library against a local copy of httpbin.org";
53     homepage = "https://github.com/kevin1024/pytest-httpbin";
54     license = licenses.mit;
55     maintainers = with maintainers; [ ];
56   };