1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 04:35:39 +03:00
aports/community/py3-mypy/APKBUILD
2023-02-18 03:08:54 +01:00

39 lines
1.1 KiB
Text

# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=py3-mypy
pkgver=1.0.1
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"
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="
081b1ada479ea694e570f6ac56e470196efe30cc5bd8d8e32255ca980a312d67779746eb3f780ecb4d83e8d7e3272fcc77231ba098e736be5893cf249b7ff84e py3-mypy-1.0.1.tar.gz
"