mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
44 lines
1 KiB
Text
44 lines
1 KiB
Text
maintainer="Hugo Osvaldo Barrera <hugo@whynothugo.nl>"
|
|
pkgname=py3-lsp-mypy
|
|
_pypi_name=pylsp_mypy
|
|
pkgver=0.7.0
|
|
pkgrel=0
|
|
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://pypi.python.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="
|
|
7590ecc40754bf396eee43daf02b8c1f54b23065681c296d4e542040f5b3e6aab19fadf86976304d506781164133d509f9b5c8de44bb7dc4960fbeabc18c1df5 pylsp_mypy-0.7.0.tar.gz
|
|
"
|