1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, ujson 6}: 7 8buildPythonPackage rec { 9 pname = "python-lsp-jsonrpc"; 10 version = "1.0.0"; 11 12 src = fetchFromGitHub { 13 owner = "python-lsp"; 14 repo = pname; 15 rev = "v${version}"; 16 sha256 = "0h4bs8s4axcm0p02v59amz9sq3nr4zhzdgwq7iaw6awl27v1hd0i"; 17 }; 18 19 propagatedBuildInputs = [ 20 ujson 21 ]; 22 23 checkInputs = [ 24 pytestCheckHook 25 ]; 26 27 postPatch = '' 28 substituteInPlace setup.cfg \ 29 --replace "--cov-report html --cov-report term --junitxml=pytest.xml" "" \ 30 --replace "--cov pylsp_jsonrpc --cov test" "" 31 ''; 32 33 pythonImportsCheck = [ "pylsp_jsonrpc" ]; 34 35 meta = with lib; { 36 description = "Python server implementation of the JSON RPC 2.0 protocol."; 37 homepage = "https://github.com/python-lsp/python-lsp-jsonrpc"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}