at master 1.1 kB view raw
1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pythonOlder, 7 pytest-asyncio_0, 8 pytestCheckHook, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "aresponses"; 14 version = "3.0.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "aresponses"; 21 repo = "aresponses"; 22 rev = version; 23 hash = "sha256-RklXlIsbdq46/7D6Hv4mdskunqw1a7SFF09OjhrvMRY="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ 29 aiohttp 30 pytest-asyncio_0 31 ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 disabledTests = [ 36 # Disable tests which requires network access 37 "test_foo" 38 "test_passthrough" 39 ]; 40 41 __darwinAllowLocalNetworking = true; 42 43 pythonImportsCheck = [ "aresponses" ]; 44 45 meta = with lib; { 46 changelog = "https://github.com/aresponses/aresponses/blob/${src.rev}/README.md#changelog"; 47 description = "Asyncio testing server"; 48 homepage = "https://github.com/aresponses/aresponses"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ makefu ]; 51 }; 52}