Skip to content

Commit

Permalink
New package: python3-lsp-server-1.4.1
Browse files Browse the repository at this point in the history
Substitute for python3-language-server

Fixes void-linux#34192
  • Loading branch information
CameronNemo committed Apr 2, 2022
1 parent 45de7a4 commit b5f037d
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 67 deletions.
1 change: 1 addition & 0 deletions srcpkgs/python3-language-server
37 changes: 0 additions & 37 deletions srcpkgs/python3-language-server/patches/jedi_compat.patch

This file was deleted.

30 changes: 0 additions & 30 deletions srcpkgs/python3-language-server/template

This file was deleted.

40 changes: 40 additions & 0 deletions srcpkgs/python3-lsp-server/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Template file for 'python3-lsp-server'
pkgname=python3-lsp-server
version=1.4.1
revision=1
wrksrc="${pkgname/3}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools python3-setuptools_scm python3-wheel"
depends="python3-jedi python3-pluggy python3-lsp-jsonrpc python3-ultrajson
python3-setuptools"
checkdepends="${depends} autopep8 python3-coverage python3-flaky python3-matplotlib
python3-mccabe python3-mock python3-numpy python3-pandas python3-pycodestyle
python3-PyQt5 python3-pyflakes python3-pylint python3-pytest python3-pytest-cov
python3-yapf flake8"
short_desc="Python implementation of the Language Server Protocol"
maintainer="Cameron Nemo <[email protected]>"
license="MIT"
homepage="https://github.com/python-lsp/python-lsp-server"
distfiles="${PYPI_SITE}/p/${pkgname/3}/${pkgname/3}-${version}.tar.gz"
checksum=be7f83298af9f0951a93972cafc9db04fd7cf5c05f20812515275f0ba70e342f

do_check() {
python3 -m pytest \
--ignore=test/plugins/test_completion.py \
--ignore=test/plugins/test_pydocstyle_lint.py \
--ignore=test/plugins/test_rope_rename.py
}

post_install() {
vlicense LICENSE
ln -s pylsp "${DESTDIR}/usr/bin/pyls"
}

python3-language-server_package() {
build_style=meta
depends="python3-lsp-server>=${version}_${revision}"
short_desc+=" (transitional dummy package)"
pkg_install() {
vmove usr/bin/pyls
}
}

0 comments on commit b5f037d

Please sign in to comment.