summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2024-12-17 23:27:23 +0900
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2024-12-17 23:43:58 +0900
commit907590b67139f18dd33dab3f9bee29b9a08c6829 (patch)
tree94f08e9c986b9b215a3f58ef405f6ff17257eddb
parentfc40c8b47a16868cc3a41c6890b0b2677d561566 (diff)
gnu: python-lsp-server: Update to 1.12.0, fixing build.
* gnu/packages/python-xyz.scm (python-lsp-server): Update to 1.12.0. [source]: Update URI. [arguments]: Via #:test-flags, reinstate test_pydocstyle_lint test and skip the test_jedi_completion_with_fuzzy_enabled one. Ignore conftest.py. [native-inputs]: Remove python-coverage and python-pytest-cov. Add python-setuptools-scm. Change-Id: I48eed0b0ecd3ca6ac187292620d75aba9090307f
-rw-r--r--gnu/packages/python-xyz.scm23
1 files changed, 13 insertions, 10 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 4cc555632d..81bcedc65e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8553,22 +8553,26 @@ Server (PLS).")
(define-public python-lsp-server
(package
(name "python-lsp-server")
- (version "1.11.0")
+ (version "1.12.0")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "python-lsp-server" version))
+ (uri (pypi-uri "python_lsp_server" version))
(sha256
(base32
- "11lf7c9dpf8jzz5y7dllz8l1lka887m9a79xbazy8lkq7zxxdvc9"))))
+ "0fq5vkwkvn29rwf5l19iicmj913franc6q8ymjdvs0ys53qkd8xn"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
- '(list "-k" "not test_pyqt_completion"
- ;; This could be a real issue due to our old version of
- ;; pydocstyle.
- "--ignore=test/plugins/test_pydocstyle_lint.py")
+ '(list "-c" "/dev/null" ;avoid coverage
+ "-k"
+ (string-append
+ "not test_pyqt_completion " ;avoid pyqt5
+ ;; This test fails with "AssertionError: assert 'isabs(s)' ==
+ ;; 'commonprefix(m)'" (see:
+ ;; https://github.com/python-lsp/python-lsp-server/issues/602).
+ "and not test_jedi_completion_with_fuzzy_enabled"))
#:phases
'(modify-phases %standard-phases
(add-before 'check 'set-HOME
@@ -8587,21 +8591,20 @@ Server (PLS).")
(native-inputs
(list python-autopep8
python-flake8
- python-coverage
python-flaky
python-matplotlib
python-numpy
python-pandas
python-pylint
python-pytest
- python-pytest-cov
python-rope
python-setuptools
+ python-setuptools-scm
python-wheel))
(home-page "https://github.com/python-lsp/python-lsp-server")
(synopsis "Python implementation of the Language Server Protocol")
(description
-"The Python Language Server @command{pylsp} is an implementation of the
+ "The Python Language Server @command{pylsp} is an implementation of the
Python 3 language specification for the Language Server Protocol (LSP).
This tool is used in text editing environments to provide a complete
and integrated feature-set for programming Python effectively.")