aports/testing/ruff-lsp/APKBUILD
2025-03-06 19:45:23 +00:00

40 lines
1 KiB
Text

maintainer="Hugo Osvaldo Barrera <hugo@whynothugo.nl>"
pkgname=ruff-lsp
pkgver=0.0.62
pkgrel=0
pkgdesc="Language Server Protocol implementation for Ruff"
url="https://github.com/charliermarsh/ruff-lsp"
arch="all"
license="MIT"
depends="
py3-gls
py3-lsprotocol
py3-typing-extensions
ruff
"
makedepends="py3-gpep517 py3-installer py3-hatchling"
checkdepends="py3-lsp-jsonrpc py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/astral-sh/ruff-lsp/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # no tests ran
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 unittest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/ruff_lsp-$pkgver-py3-none-any.whl
}
sha512sums="
1210c6129603dc76caa2a9ebc1cf9ab668a16eb054c026c82c0fb87b91f17e19a5eea05ecbc5fdcd26ca2c53b9b6e6645d67f9708032911eb6aa7119d9a0ceaa ruff-lsp-0.0.62.tar.gz
"