gnu: Add python-jupyter-lsp.

* gnu/packages/jupyter.scm (python-jupyter-lsp): New variable.

Change-Id: I685e289e5e24e049d1b111061bfd79fdca15d6c9
This commit is contained in:
Ricardo Wurmus 2025-01-13 13:56:13 +01:00
parent a3615c0c74
commit d0268d5b7f
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -135,6 +135,38 @@ (define-public python-notebook-shim
to Jupyter Server for their Python Web application backend.")
(license license:bsd-3)))
(define-public python-jupyter-lsp
(package
(name "python-jupyter-lsp")
(version "2.2.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jupyter-lsp" version))
(sha256
(base32 "00ahai7wp0m98glpqsrd1bymcllzkb8irvskzl4zhinlbah4fcbr"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
;; No R language server is present.
'(list "-k" "not test_r_package_detection")
#:phases
'(modify-phases %standard-phases
;; Some tests require a writable HOME
(add-before 'check 'set-HOME
(lambda _ (setenv "HOME" "/tmp"))))))
(propagated-inputs (list python-jupyter-server))
(native-inputs (list python-pytest python-setuptools python-wheel))
(home-page "https://pypi.org/project/jupyter-lsp/")
(synopsis "Multi-Language Server WebSocket proxy for Jupyter Notebook/Lab server")
(description
"This package provides a multi-language server WebSocket proxy for
Jupyter Notebook/Lab server. It provides coding assistance for
JupyterLab (code navigation, hover suggestions, linters, autocompletion, and
rename) using the Language Server Protocol.")
(license license:bsd-3)))
(define-public python-jupyter-protocol
(package
(name "python-jupyter-protocol")