aports/community/py3-mypy/APKBUILD
2024-08-26 22:13:31 +02:00

41 lines
1.1 KiB
Plaintext

# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-mypy
pkgver=1.11.2
pkgrel=0
pkgdesc="Optional static typing for Python (PEP484)"
url="https://mypy-lang.org/"
arch="noarch"
license="MIT"
depends="
py3-mypy-extensions
py3-typing-extensions
"
makedepends="python3-dev py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-pytest-xdist py3-lxml py3-typed-ast py3-virtualenv"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/python/mypy/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/mypy-$pkgver"
options="!check" # they take forever
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages test-env
test-env/bin/python3 -m installer .dist/mypy-*.whl
test-env/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/mypy-*.whl
}
sha512sums="
c25584db08adcf7693944e5a6a41743101e80a0ff03f36f0353a07674ad4e2d63dbd4ff3fa0e307c19d63bc5aac9f7523340bd5a7cb3661642f3fb33759aafd0 py3-mypy-1.11.2.tar.gz
"