aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-mypy/APKBUILD
blob: c0de93a5cbbfc96e6af5857612a81f65bb8161e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-mypy
pkgver=1.9.0
pkgrel=1
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/$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="
aaa975b97e72f00a384a38fee190e39c6469b062a7083c76bb94bb7058ed38f713f65b96bb36a871a430633cab424a0f11e995868f867e2f7a13c4754ed96c89  py3-mypy-1.9.0.tar.gz
"