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