1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7 pythonOlder, 8 requests, 9 toml, 10 werkzeug, 11}: 12 13buildPythonPackage rec { 14 pname = "pytest-httpserver"; 15 version = "1.1.3"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "csernazs"; 22 repo = "pytest-httpserver"; 23 tag = version; 24 hash = "sha256-5pyCDzt9nCwYcUdCjWlJiAkyNmf6oWBqSHQL7kJJluA="; 25 }; 26 27 nativeBuildInputs = [ poetry-core ]; 28 29 propagatedBuildInputs = [ werkzeug ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 requests 34 toml 35 ]; 36 37 __darwinAllowLocalNetworking = true; 38 39 disabledTests = [ 40 "test_wait_raise_assertion_false" # racy 41 ]; 42 43 pythonImportsCheck = [ "pytest_httpserver" ]; 44 45 meta = with lib; { 46 description = "HTTP server for pytest to test HTTP clients"; 47 homepage = "https://www.github.com/csernazs/pytest-httpserver"; 48 changelog = "https://github.com/csernazs/pytest-httpserver/blob/${src.tag}/CHANGES.rst"; 49 license = with licenses; [ mit ]; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}