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