Merge pull request #254356 from fabaff/python-lsp-jsonrpc-bump

python311Packages.python-lsp-jsonrpc: 1.0.0 -> 1.1.1, python311Packages.python-lsp-server: 1.7.4 -> 1.8.0

authored by Robert Scott and committed by GitHub 201cabb7 398a5f16

+33 -25
+26 -11
pkgs/development/python-modules/python-lsp-jsonrpc/default.nix
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , pytestCheckHook 5 , ujson 6 }: 7 8 buildPythonPackage 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 ]; ··· 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 };
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , pytestCheckHook 5 + , pythonOlder 6 + , setuptools 7 + , setuptools-scm 8 , ujson 9 }: 10 11 buildPythonPackage rec { 12 pname = "python-lsp-jsonrpc"; 13 + version = "1.1.1"; 14 + format = "pyproject"; 15 + 16 + disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "python-lsp"; 20 repo = pname; 21 + rev = "refs/tags/v${version}"; 22 + hash = "sha256-XTvnDTaP5oweGSq1VItq+SEv7S/LrQq4YP1XQc3bxbk="; 23 }; 24 25 + SETUPTOOLS_SCM_PRETEND_VERSION = version; 26 + 27 + postPatch = '' 28 + substituteInPlace pyproject.toml \ 29 + --replace "--cov-report html --cov-report term --junitxml=pytest.xml --cov pylsp_jsonrpc --cov test" "" 30 + ''; 31 + 32 + nativeBuildInputs = [ 33 + setuptools 34 + setuptools-scm 35 + ]; 36 + 37 propagatedBuildInputs = [ 38 ujson 39 ]; ··· 42 pytestCheckHook 43 ]; 44 45 + pythonImportsCheck = [ 46 + "pylsp_jsonrpc" 47 + ]; 48 49 meta = with lib; { 50 + description = "Python server implementation of the JSON RPC 2.0 protocol"; 51 homepage = "https://github.com/python-lsp/python-lsp-jsonrpc"; 52 + changelog = "https://github.com/python-lsp/python-lsp-jsonrpc/blob/v${version}/CHANGELOG.md"; 53 license = licenses.mit; 54 maintainers = with maintainers; [ fab ]; 55 };
+7 -14
pkgs/development/python-modules/python-lsp-server/default.nix
··· 4 , buildPythonPackage 5 , docstring-to-markdown 6 , fetchFromGitHub 7 - , fetchpatch 8 , flake8 9 , flaky 10 , jedi 11 , matplotlib 12 , mccabe ··· 19 , pylint 20 , pyqt5 21 , pytestCheckHook 22 - , pythonRelaxDepsHook 23 , python-lsp-jsonrpc 24 , pythonOlder 25 , rope 26 , setuptools 27 , setuptools-scm ··· 35 36 buildPythonPackage rec { 37 pname = "python-lsp-server"; 38 - version = "1.7.4"; 39 format = "pyproject"; 40 41 - disabled = pythonOlder "3.7"; 42 43 src = fetchFromGitHub { 44 owner = "python-lsp"; 45 repo = pname; 46 rev = "refs/tags/v${version}"; 47 - hash = "sha256-plciPUROFileVULGBZpwUTkW2NZVHy4Nuf4+fSjd8nM="; 48 }; 49 50 - patches = [ 51 - # https://github.com/python-lsp/python-lsp-server/pull/416 52 - (fetchpatch { 53 - name = "bump-jedi-upper-pin-to-0.20.patch"; 54 - url = "https://github.com/python-lsp/python-lsp-server/commit/f33a93afc8c3a0f16751f9e1f6601a37967fd7df.patch"; 55 - hash = "sha256-lBpzXxjlQp2ig0z2DRJw+jQZ5eRLIOJYjGrzfgvknDA="; 56 - }) 57 - ]; 58 - 59 postPatch = '' 60 substituteInPlace pyproject.toml \ 61 --replace "--cov-report html --cov-report term --junitxml=pytest.xml" "" \ ··· 86 python-lsp-jsonrpc 87 setuptools # `pkg_resources`imported in pylsp/config/config.py 88 ujson 89 ]; 90 91 passthru.optional-dependencies = {
··· 4 , buildPythonPackage 5 , docstring-to-markdown 6 , fetchFromGitHub 7 , flake8 8 , flaky 9 + , importlib-metadata 10 , jedi 11 , matplotlib 12 , mccabe ··· 19 , pylint 20 , pyqt5 21 , pytestCheckHook 22 , python-lsp-jsonrpc 23 , pythonOlder 24 + , pythonRelaxDepsHook 25 , rope 26 , setuptools 27 , setuptools-scm ··· 35 36 buildPythonPackage rec { 37 pname = "python-lsp-server"; 38 + version = "1.8.0"; 39 format = "pyproject"; 40 41 + disabled = pythonOlder "3.8"; 42 43 src = fetchFromGitHub { 44 owner = "python-lsp"; 45 repo = pname; 46 rev = "refs/tags/v${version}"; 47 + hash = "sha256-hLgMGZumuNY70/qyD9t5pMpYI/g70sqFIt1LEfIEALY="; 48 }; 49 50 postPatch = '' 51 substituteInPlace pyproject.toml \ 52 --replace "--cov-report html --cov-report term --junitxml=pytest.xml" "" \ ··· 77 python-lsp-jsonrpc 78 setuptools # `pkg_resources`imported in pylsp/config/config.py 79 ujson 80 + ] ++ lib.optionals (pythonOlder "3.10") [ 81 + importlib-metadata 82 ]; 83 84 passthru.optional-dependencies = {