Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.30.0"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.9"; 20 21 src = fetchFromGitHub { 22 owner = "Colin-b"; 23 repo = "pytest_httpx"; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-JfyqeOCHNHO4IEHVrh47TdWvb8lcy/1Prqnfphs0ufM="; 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/v${version}/CHANGELOG.md"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}