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