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
This commit is contained in:
Maxim Cournoyer 2024-12-17 23:27:23 +09:00
parent fc40c8b47a
commit 907590b671
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -8553,22 +8553,26 @@ Server (PLS).")
(define-public python-lsp-server (define-public python-lsp-server
(package (package
(name "python-lsp-server") (name "python-lsp-server")
(version "1.11.0") (version "1.12.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "python-lsp-server" version)) (uri (pypi-uri "python_lsp_server" version))
(sha256 (sha256
(base32 (base32
"11lf7c9dpf8jzz5y7dllz8l1lka887m9a79xbazy8lkq7zxxdvc9")))) "0fq5vkwkvn29rwf5l19iicmj913franc6q8ymjdvs0ys53qkd8xn"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
#:test-flags #:test-flags
'(list "-k" "not test_pyqt_completion" '(list "-c" "/dev/null" ;avoid coverage
;; This could be a real issue due to our old version of "-k"
;; pydocstyle. (string-append
"--ignore=test/plugins/test_pydocstyle_lint.py") "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 #:phases
'(modify-phases %standard-phases '(modify-phases %standard-phases
(add-before 'check 'set-HOME (add-before 'check 'set-HOME
@ -8587,21 +8591,20 @@ Server (PLS).")
(native-inputs (native-inputs
(list python-autopep8 (list python-autopep8
python-flake8 python-flake8
python-coverage
python-flaky python-flaky
python-matplotlib python-matplotlib
python-numpy python-numpy
python-pandas python-pandas
python-pylint python-pylint
python-pytest python-pytest
python-pytest-cov
python-rope python-rope
python-setuptools python-setuptools
python-setuptools-scm
python-wheel)) python-wheel))
(home-page "https://github.com/python-lsp/python-lsp-server") (home-page "https://github.com/python-lsp/python-lsp-server")
(synopsis "Python implementation of the Language Server Protocol") (synopsis "Python implementation of the Language Server Protocol")
(description (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). Python 3 language specification for the Language Server Protocol (LSP).
This tool is used in text editing environments to provide a complete This tool is used in text editing environments to provide a complete
and integrated feature-set for programming Python effectively.") and integrated feature-set for programming Python effectively.")