1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, httpbin
5, pytest
6, pytestCheckHook
7, pythonOlder
8, requests
9, six
10}:
11
12buildPythonPackage rec {
13 pname = "pytest-httpbin";
14 version = "2.0.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "kevin1024";
21 repo = "pytest-httpbin";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-tq9nz2na94HkLACt7xB1MUanh9/JOoe2vyEm5sAq0/4=";
24 };
25
26 buildInputs = [
27 pytest
28 ];
29
30 propagatedBuildInputs = [
31 httpbin
32 six
33 ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 requests
38 ];
39
40 disabledTests = [
41 # incompatible with flask 2.3
42 "test_redirect_location_is_https_for_secure_server"
43 ];
44
45 __darwinAllowLocalNetworking = true;
46
47 pythonImportsCheck = [
48 "pytest_httpbin"
49 ];
50
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 };
57}