nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 54 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 flask, 6 httpcore, 7 httpx, 8 pytest-asyncio, 9 pytest-cov-stub, 10 pytestCheckHook, 11 setuptools, 12 starlette, 13 trio, 14}: 15 16buildPythonPackage rec { 17 pname = "respx"; 18 version = "0.22.0"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "lundberg"; 23 repo = "respx"; 24 tag = version; 25 hash = "sha256-T3DLNXJykSF/HXjlmQdJ2CG4d+U1eTa+XWcgtT3dhl4="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ httpx ]; 31 32 nativeCheckInputs = [ 33 httpcore 34 httpx 35 flask 36 pytest-asyncio 37 pytest-cov-stub 38 pytestCheckHook 39 starlette 40 trio 41 ]; 42 43 disabledTests = [ "test_pass_through" ]; 44 45 pythonImportsCheck = [ "respx" ]; 46 47 meta = { 48 description = "Python library for mocking HTTPX"; 49 homepage = "https://lundberg.github.io/respx/"; 50 changelog = "https://github.com/lundberg/respx/blob/${src.tag}/CHANGELOG.md"; 51 license = lib.licenses.bsd3; 52 maintainers = with lib.maintainers; [ fab ]; 53 }; 54}