guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 274bf7ea6e803ffc8e67df1ee02616e823a2501f
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Jan 2 12:49:55 2026 +0000

    gnu: Add python-lsprotocol.
    
    * gnu/packages/python-xyz.scm (python-lsprotocol): New variable.
    
    Change-Id: Id12df328f4c8f51f9c45914fba8f4991857f7596
---
 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 5d28edd92c..f116a93170 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1663,6 +1663,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")

Reply via email to