1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, pythonOlder 6, pytest 7, pytest-asyncio 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "aresponses"; 13 version = "2.1.6"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "CircleUp"; 20 repo = pname; 21 rev = version; 22 sha256 = "sha256-Ui9ZpWaVBfCbDlZH3EgHX32FIZtyTHnc/UXqtoEyFcw="; 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 pytestCheckHook 38 ]; 39 40 disabledTests = [ 41 # Disable tests which requires network access 42 "test_foo" 43 "test_passthrough" 44 ]; 45 46 __darwinAllowLocalNetworking = true; 47 48 pythonImportsCheck = [ 49 "aresponses" 50 ]; 51 52 meta = with lib; { 53 description = "Asyncio testing server"; 54 homepage = "https://github.com/circleup/aresponses"; 55 license = licenses.mit; 56 maintainers = with maintainers; [ makefu ]; 57 }; 58} 59