~ruther/guix-local

bbb4b9fedc6b2b2cdd17c231f602cd19d6fb7cd9 — Sharlatan Hellseher 2 months ago b5a9dbc
gnu: Add python-lsprotocol.

* gnu/packages/python-xyz.scm (python-lsprotocol): New variable.

Change-Id: Id12df328f4c8f51f9c45914fba8f4991857f7596
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
1 files changed, 35 insertions(+), 0 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +35 -0
@@ 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")