From 4872b4292138b07f584c8ddafdf1a96e2a907e62 Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Mon, 22 Apr 2024 03:00:41 -0400 Subject: [PATCH] cmake-language-server: 0.1.9 -> 0.1.10 --- .../tools/misc/cmake-language-server/default.nix | 4 ++-- .../disable-test-timeouts.patch | 13 +++++++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/misc/cmake-language-server/default.nix b/pkgs/development/tools/misc/cmake-language-server/default.nix index f3ecd30cd4a2..5b8cc307cb04 100644 --- a/pkgs/development/tools/misc/cmake-language-server/default.nix +++ b/pkgs/development/tools/misc/cmake-language-server/default.nix @@ -12,7 +12,7 @@ buildPythonApplication rec { pname = "cmake-language-server"; - version = "0.1.9"; + version = "0.1.10"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -21,7 +21,7 @@ buildPythonApplication rec { owner = "regen100"; repo = "cmake-language-server"; rev = "refs/tags/v${version}"; - hash = "sha256-8ypl0YA6ep8/jBL3tsutSgCW13NZTZzaNafaOamcT08="; + hash = "sha256-9fnyDJm8rUl+7g4FrdMykPpQOcww2M6IPWH/3qVeJX4="; }; patches = [ diff --git a/pkgs/development/tools/misc/cmake-language-server/disable-test-timeouts.patch b/pkgs/development/tools/misc/cmake-language-server/disable-test-timeouts.patch index 237558bb6603..68d585b02c91 100644 --- a/pkgs/development/tools/misc/cmake-language-server/disable-test-timeouts.patch +++ b/pkgs/development/tools/misc/cmake-language-server/disable-test-timeouts.patch @@ -1,8 +1,8 @@ diff --git a/tests/test_server.py b/tests/test_server.py -index f349329..d130a2e 100644 +index e6cfe6e..3a3ee6a 100644 --- a/tests/test_server.py +++ b/tests/test_server.py -@@ -27,7 +27,7 @@ from pygls.server import LanguageServer +@@ -31,7 +31,7 @@ from pygls.server import LanguageServer from cmake_language_server.server import CMakeLanguageServer @@ -11,3 +11,12 @@ index f349329..d130a2e 100644 def _init(client: LanguageServer, root: Path) -> None: +@@ -115,7 +115,7 @@ def test_workspace_did_change_configuration( + ) + + start = time.monotonic() +- while server._api is old_api and (time.monotonic() - start) < CALL_TIMEOUT: ++ while server._api is old_api: + time.sleep(0.1) + + assert server._api is not None