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