From bbb4b9fedc6b2b2cdd17c231f602cd19d6fb7cd9 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 2 Jan 2026 12:49:55 +0000 Subject: [PATCH] gnu: Add python-lsprotocol. * gnu/packages/python-xyz.scm (python-lsprotocol): New variable. Change-Id: Id12df328f4c8f51f9c45914fba8f4991857f7596 Signed-off-by: Rutherther --- gnu/packages/python-xyz.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 4968b1e9711f35d7b211c963f984417dbf6c52ae..8206432cfa011ae38c95e174654db3f489ad8802 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -1709,6 +1709,41 @@ various languages.") be displayed on the terminal, with color if possible, for logging purposes.") (license license:expat))) +(define-public python-lsprotocol + (package + (name "python-lsprotocol") + (version "2025.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/microsoft/lsprotocol") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0m5c2wd7f3i1ipdf0lqhfmgi7d9jw6sa49pvx8828r83r0f9gd8f")))) + (build-system pyproject-build-system) + (arguments + (list + #:tests? #f ;no tests for Python package + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'cd-packages-python + (lambda _ + (chdir "packages/python")))))) + (native-inputs + (list python-flit-core)) + (propagated-inputs + (list python-attrs + python-cattrs)) + (home-page "https://github.com/microsoft/lsprotocol") + (synopsis "Python types for Language Server Protocol.") + (description + "@code{lsprotocol} is a Python implementation of object types used in +the Language Server Protocol (LSP). This repository contains the code +generator and the generated types for LSP.") + (license license:expat))) + (define-public python-marisa-trie (package (name "python-marisa-trie")