1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, isPy3k 6, pytest 7, pytest-asyncio 8, pytest-cov 9, pytestCheckHook 10}: 11 12buildPythonPackage rec { 13 pname = "aresponses"; 14 version = "2.1.4"; 15 16 disabled = !isPy3k; 17 18 src = fetchFromGitHub { 19 owner = "CircleUp"; 20 repo = pname; 21 rev = version; 22 sha256 = "sha256-crMiMZ2IDuYDFt8Bixg3NRhlUa2tqmfzd7ZeHM+2Iu4="; 23 }; 24 25 propagatedBuildInputs = [ 26 aiohttp 27 ]; 28 29 buildInputs = [ 30 pytest 31 pytest-asyncio 32 ]; 33 34 checkInputs = [ 35 aiohttp 36 pytest-asyncio 37 pytest-cov 38 pytestCheckHook 39 ]; 40 41 # Disable tests which requires network access 42 disabledTests = [ 43 "test_foo" 44 "test_passthrough" 45 ]; 46 47 __darwinAllowLocalNetworking = true; 48 49 pythonImportsCheck = [ "aresponses" ]; 50 51 meta = with lib; { 52 description = "Asyncio testing server"; 53 homepage = "https://github.com/circleup/aresponses"; 54 license = licenses.mit; 55 maintainers = with maintainers; [ makefu ]; 56 }; 57}