1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest-asyncio 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "jsonrpc-base"; 11 version = "2.1.1"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "emlove"; 18 repo = pname; 19 rev = version; 20 hash = "sha256-C03m/zeLIFqsmEMSzt84LMOWAHUcpdEHhaa5hx2NsoQ="; 21 }; 22 23 nativeCheckInputs = [ 24 pytest-asyncio 25 pytestCheckHook 26 ]; 27 28 pytestFlagsArray = [ 29 "tests.py" 30 ]; 31 32 pythonImportsCheck = [ 33 "jsonrpc_base" 34 ]; 35 36 meta = with lib; { 37 description = "A 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}