1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest-asyncio, 6 pytestCheckHook, 7 pythonOlder, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "jsonrpc-base"; 13 version = "2.2.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "emlove"; 20 repo = "jsonrpc-base"; 21 tag = version; 22 hash = "sha256-AbpuAW+wuGc+Vj4FDFlyB2YbiwDxPLuyAGiNcmGU+Ss="; 23 }; 24 25 nativeBuildInputs = [ setuptools ]; 26 27 nativeCheckInputs = [ 28 pytest-asyncio 29 pytestCheckHook 30 ]; 31 32 enabledTestPaths = [ "tests.py" ]; 33 34 pythonImportsCheck = [ "jsonrpc_base" ]; 35 36 meta = with lib; { 37 description = "JSON-RPC client library base interface"; 38 homepage = "https://github.com/emlove/jsonrpc-base"; 39 license = licenses.bsd3; 40 maintainers = with maintainers; [ peterhoeg ]; 41 }; 42}