1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 jsonrpc-base, 7 pytest-aiohttp, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "jsonrpc-async"; 14 version = "2.1.2"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "emlove"; 21 repo = pname; 22 rev = version; 23 hash = "sha256-KOnycsOZFDEVj8CJDwGbdtbOpMPQMVdrXbHG0fzr9PI="; 24 }; 25 26 propagatedBuildInputs = [ 27 aiohttp 28 jsonrpc-base 29 ]; 30 31 nativeCheckInputs = [ 32 pytest-aiohttp 33 pytestCheckHook 34 ]; 35 36 pytestFlagsArray = [ "tests.py" ]; 37 38 pythonImportsCheck = [ "jsonrpc_async" ]; 39 40 meta = with lib; { 41 description = "JSON-RPC client library for asyncio"; 42 homepage = "https://github.com/emlove/jsonrpc-async"; 43 license = licenses.bsd3; 44 maintainers = with maintainers; [ peterhoeg ]; 45 }; 46}