42 lines
1.5 KiB
Bash
42 lines
1.5 KiB
Bash
# Template file for 'python3-lsp-server'
|
|
pkgname=python3-lsp-server
|
|
version=1.6.0
|
|
revision=1
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools python3-setuptools_scm python3-wheel"
|
|
depends="python3-jedi python3-pluggy python3-lsp-jsonrpc python3-ultrajson
|
|
python3-setuptools python3-docstring-to-markdown"
|
|
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
|
|
flake8"
|
|
short_desc="Python implementation of the Language Server Protocol"
|
|
maintainer="Cameron Nemo <cam@nohom.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/python-lsp/python-lsp-server"
|
|
changelog="https://raw.githubusercontent.com/python-lsp/python-lsp-server/develop/CHANGELOG.md"
|
|
distfiles="${PYPI_SITE}/p/python-lsp-server/python-lsp-server-${version}.tar.gz"
|
|
checksum=d75cdff9027c4212e5b9e861e9a0219219c8e2c69508d9f24949951dabd0dc1b
|
|
|
|
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 \
|
|
--ignore=test/plugins/test_yapf_format.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
|
|
}
|
|
}
|