nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 45 lines 974 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pytest-cov-stub, 7 setuptools, 8 setuptools-scm, 9 ujson, 10}: 11 12buildPythonPackage rec { 13 pname = "python-lsp-jsonrpc"; 14 version = "1.1.2"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "python-lsp"; 19 repo = "python-lsp-jsonrpc"; 20 tag = "v${version}"; 21 hash = "sha256-5WN/31e6WCgXVzevMuQbNjyo/2jjWDF+m48nrLKS+64="; 22 }; 23 24 nativeBuildInputs = [ 25 setuptools 26 setuptools-scm 27 ]; 28 29 propagatedBuildInputs = [ ujson ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 pytest-cov-stub 34 ]; 35 36 pythonImportsCheck = [ "pylsp_jsonrpc" ]; 37 38 meta = { 39 description = "Python server implementation of the JSON RPC 2.0 protocol"; 40 homepage = "https://github.com/python-lsp/python-lsp-jsonrpc"; 41 changelog = "https://github.com/python-lsp/python-lsp-jsonrpc/blob/v${version}/CHANGELOG.md"; 42 license = lib.licenses.mit; 43 maintainers = with lib.maintainers; [ fab ]; 44 }; 45}