From f12242c3d0a799f00334b86f1609a44d2cc96968 Mon Sep 17 00:00:00 2001 From: Konstantin Alekseev Date: Sun, 22 Oct 2023 15:05:56 +0300 Subject: [PATCH 1/4] python311Packages.pygls: 1.0.2 -> 1.1.1 --- pkgs/development/python-modules/pygls/default.nix | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/pygls/default.nix b/pkgs/development/python-modules/pygls/default.nix index caf3e014eed6..ae10f84995a1 100644 --- a/pkgs/development/python-modules/pygls/default.nix +++ b/pkgs/development/python-modules/pygls/default.nix @@ -3,19 +3,17 @@ , buildPythonPackage , pythonOlder , fetchFromGitHub -, setuptools-scm , lsprotocol -, toml , typeguard -, mock +, poetry-core , pytest-asyncio , pytestCheckHook }: buildPythonPackage rec { pname = "pygls"; - version = "1.0.2"; - format = "setuptools"; + version = "1.1.1"; + format = "pyproject"; disabled = pythonOlder "3.7"; @@ -23,13 +21,11 @@ buildPythonPackage rec { owner = "openlawlibrary"; repo = "pygls"; rev = "refs/tags/v${version}"; - hash = "sha256-z673NRlnudFyDjKoM+xCbMRTFwh+tjUf4BaNtjwvKx8="; + hash = "sha256-FOuBS/UJpkYbuIu193vkSpN/77gf+UWiS5f/t8BpAk4="; }; - SETUPTOOLS_SCM_PRETEND_VERSION = version; nativeBuildInputs = [ - setuptools-scm - toml + poetry-core ]; propagatedBuildInputs = [ @@ -38,7 +34,6 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ - mock pytest-asyncio pytestCheckHook ]; From a1b998f8fc521639aab5206017b4ad675eb59670 Mon Sep 17 00:00:00 2001 From: Konstantin Alekseev Date: Tue, 24 Oct 2023 10:09:22 +0300 Subject: [PATCH 2/4] cmake-language-server: 0.1.7 -> 0.1.8 --- .../misc/cmake-language-server/default.nix | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/pkgs/development/tools/misc/cmake-language-server/default.nix b/pkgs/development/tools/misc/cmake-language-server/default.nix index 9c2641487df4..6d2bc2b009fd 100644 --- a/pkgs/development/tools/misc/cmake-language-server/default.nix +++ b/pkgs/development/tools/misc/cmake-language-server/default.nix @@ -4,32 +4,33 @@ , cmake-format , pygls , cmake -, pdm-pep517 +, pdm-backend , pytest-datadir , pytestCheckHook +, pythonOlder }: buildPythonApplication rec { pname = "cmake-language-server"; - version = "0.1.7"; + version = "0.1.8"; format = "pyproject"; + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "regen100"; repo = "cmake-language-server"; rev = "refs/tags/v${version}"; - hash = "sha256-ExEAi47hxxEJeoT3FCwpRwJrf3URnI47/5FDL7fS5sY="; + hash = "sha256-7AlF+FqhZR+6lLsR1dxAGHd/GU+mB3ojYLDXVm7Il4M="; }; - PDM_PEP517_SCM_VERSION = version; - patches = [ # Test timeouts occasionally cause the build to fail ./disable-test-timeouts.patch ]; nativeBuildInputs = [ - pdm-pep517 + pdm-backend ]; propagatedBuildInputs = [ @@ -44,6 +45,16 @@ buildPythonApplication rec { pytestCheckHook ]; + # version.py generated by pdm, no idea why it's not present in test phase + # https://github.com/regen100/cmake-language-server/blob/68bbc8187b6110a75f498647af7c44df790ffa87/pyproject.toml#L35-L36 + preCheck = '' + echo "__version__ = \"$PDM_BUILD_SCM_VERSION\"" > cmake_language_server/version.py + ''; + + postCheck = '' + rm cmake_language_server/version.py + ''; + dontUseCmakeConfigure = true; pythonImportsCheck = [ From 3727741ef7390e5f0a4ae96fe26025b018926eeb Mon Sep 17 00:00:00 2001 From: Konstantin Alekseev Date: Wed, 25 Oct 2023 09:05:23 +0300 Subject: [PATCH 3/4] python3Packages.ruff-lsp: 0.0.40 -> 0.0.42 --- pkgs/development/tools/language-servers/ruff-lsp/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/language-servers/ruff-lsp/default.nix b/pkgs/development/tools/language-servers/ruff-lsp/default.nix index 3740472e2c70..d91ec72ea6ae 100644 --- a/pkgs/development/tools/language-servers/ruff-lsp/default.nix +++ b/pkgs/development/tools/language-servers/ruff-lsp/default.nix @@ -16,7 +16,7 @@ buildPythonPackage rec { pname = "ruff-lsp"; - version = "0.0.40"; + version = "0.0.42"; pyproject = true; disabled = pythonOlder "3.7"; @@ -24,7 +24,7 @@ buildPythonPackage rec { owner = "astral-sh"; repo = "ruff-lsp"; rev = "v${version}"; - hash = "sha256-CQ4SDIGhUTn7fdvoGag+XM7HcY+qJyp9McyzpoTQ0tM="; + hash = "sha256-Dn/xPjYCyJYlDNMUfl61L/tWq5mRJ8WD0G5qZH9OepY="; }; postPatch = '' From 074f0637a882d08cf96949fb7b67c72d7ad4311c Mon Sep 17 00:00:00 2001 From: Konstantin Alekseev Date: Wed, 25 Oct 2023 09:05:59 +0300 Subject: [PATCH 4/4] python3Packages.jedi-language-server: 0.41.0 -> 0.41.2-dev --- .../python-modules/jedi-language-server/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/jedi-language-server/default.nix b/pkgs/development/python-modules/jedi-language-server/default.nix index 10969de0673e..fca4a554d328 100644 --- a/pkgs/development/python-modules/jedi-language-server/default.nix +++ b/pkgs/development/python-modules/jedi-language-server/default.nix @@ -16,7 +16,7 @@ buildPythonPackage rec { pname = "jedi-language-server"; - version = "0.41.0"; + version = "0.41.1-unstable-2023-10-04"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -24,8 +24,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "pappasam"; repo = pname; - rev = "refs/tags/v${version}"; - hash = "sha256-1ujEhoxWcCM1g640aLE60YGiNQLB+G7t7oLVZXW8AMM="; + rev = "c4c470cff67e54593a626b22d1b6b05e56fde3a3"; + hash = "sha256-qFBni97B/GkabbznnZtWTG4dCHFkOx5UQjuevxq+Uvo="; }; pythonRelaxDeps = [