1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 httpbin,
6 pytest,
7 pytestCheckHook,
8 pythonOlder,
9 requests,
10 six,
11}:
12
13buildPythonPackage rec {
14 pname = "pytest-httpbin";
15 version = "2.0.0";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "kevin1024";
22 repo = "pytest-httpbin";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-tq9nz2na94HkLACt7xB1MUanh9/JOoe2vyEm5sAq0/4=";
25 };
26
27 buildInputs = [ pytest ];
28
29 propagatedBuildInputs = [
30 httpbin
31 six
32 ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 requests
37 ];
38
39 disabledTests = [
40 # incompatible with flask 2.3
41 "test_redirect_location_is_https_for_secure_server"
42 ];
43
44 __darwinAllowLocalNetworking = true;
45
46 pythonImportsCheck = [ "pytest_httpbin" ];
47
48 meta = with lib; {
49 description = "Test your HTTP library against a local copy of httpbin.org";
50 homepage = "https://github.com/kevin1024/pytest-httpbin";
51 license = licenses.mit;
52 maintainers = with maintainers; [ ];
53 };
54}