aports/testing/py3-lsp-mypy/APKBUILD

44 lines
1 KiB
Text

maintainer="Hugo Osvaldo Barrera <hugo@whynothugo.nl>"
pkgname=py3-lsp-mypy
_pypi_name=pylsp-mypy
pkgver=0.6.8
pkgrel=1
pkgdesc="MyPy plugin for the Python LSP Server"
url="https://github.com/python-lsp/pylsp-mypy"
# armhf, s390x: no py3-lsp-server
arch="noarch !armhf !s390x"
license="MIT"
depends="
py3-lsp-server
py3-mypy
"
makedepends="
py3-gpep517
py3-installer
py3-wheel
"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pypi_name:0:1}/$_pypi_name/$_pypi_name-$pkgver.tar.gz"
builddir="$srcdir"/$_pypi_name-$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="
c270ff6871c5e5d5dfb2d0b3e0f3ee22133ff0ef90c0668f2585cecdfc83664eb47b08c6169e0e05ea7f38e61de895fad6c06d435d9bd0323b4a3ea74dd5bc7c pylsp-mypy-0.6.8.tar.gz
"