1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 httpx, 6 pytest, 7 pytest-asyncio, 8 pytestCheckHook, 9 pythonOlder, 10 setuptools, 11 setuptools-scm, 12}: 13 14buildPythonPackage rec { 15 pname = "pytest-httpx"; 16 version = "0.35.0"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.9"; 20 21 src = fetchFromGitHub { 22 owner = "Colin-b"; 23 repo = "pytest_httpx"; 24 tag = "v${version}"; 25 hash = "sha256-O5nLkXmGmLRA7tUYYDQ/w9JSxoiaWSLdHIYGrBjkGPE="; 26 }; 27 28 nativeBuildInputs = [ 29 setuptools 30 setuptools-scm 31 ]; 32 33 buildInputs = [ pytest ]; 34 35 propagatedBuildInputs = [ httpx ]; 36 37 pythonRelaxDeps = [ "httpx" ]; 38 39 nativeCheckInputs = [ 40 pytest-asyncio 41 pytestCheckHook 42 ]; 43 44 pythonImportsCheck = [ "pytest_httpx" ]; 45 46 meta = with lib; { 47 description = "Send responses to httpx"; 48 homepage = "https://github.com/Colin-b/pytest_httpx"; 49 changelog = "https://github.com/Colin-b/pytest_httpx/blob/${src.tag}/CHANGELOG.md"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}