2023-10-29 10:26:24 +00:00

38 lines
1.0 KiB
Plaintext

# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-gls
pkgver=1.1.2
pkgrel=0
pkgdesc="pythonic generic language server"
url="https://github.com/openlawlibrary/pygls"
arch="noarch"
license="Apache-2.0"
depends="py3-lsprotocol py3-typeguard"
makedepends="py3-gpep517 py3-wheel py3-poetry-core"
checkdepends="py3-pytest py3-pytest-asyncio"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/openlawlibrary/pygls/archive/refs/tags/v$pkgver.tar.gz
"
builddir="$srcdir/pygls-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
d15e762532c670e0cc0706e377d10fae4936eaf281b3befbf6630490207ff23e0f292bd3fd4d600bd91a93d3ae7e76b209983582f9ac156542ae31e4e5b20cce py3-gls-1.1.2.tar.gz
"