1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/testing/py3-lsprotocol/APKBUILD

44 lines
921 B
Text

# Maintainer: psykose <alice@ayaya.dev>
pkgname=py3-lsprotocol
pkgver=2023.0.0a1
pkgrel=0
pkgdesc="Python implementation of the Language Server Protocol"
url="https://github.com/microsoft/lsprotocol"
arch="noarch"
license="MIT"
depends="
py3-attrs
py3-cattrs
python3
"
makedepends="
py3-flit-core
py3-gpep517
"
checkdepends="
py3-jsonschema
py3-pyhamcrest
py3-pytest
"
source="$pkgname-$pkgver.tar.gz::https://github.com/microsoft/lsprotocol/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/lsprotocol-$pkgver"
build() {
cd packages/python
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest tests/python
}
package() {
python3 -m installer -d "$pkgdir" \
packages/python/dist/*.whl
}
sha512sums="
e37a5fdfa93fd49cf8d3d3ce66049e082064d700e3049ce9f11839e076e7b5d23dae18dbe73322cbd2001abdab80aa80d361e741f7fbdd53ad1ea7a0bf573b77 py3-lsprotocol-2023.0.0a1.tar.gz
"