mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# Contributor: Justin Berthault <justin.berthault@zaclys.net>
|
|
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
|
|
pkgname=py3-mypy
|
|
pkgver=1.2.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/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="
|
|
5bee7a5ae4ac608cb3b3855c0ad100ea6ba512900aa557a153e1ae5f8e779125a8ef61103a81a9584b0585a6d4eea78c3585af61fa62986f984ac2b63e6b89b6 py3-mypy-1.2.0.tar.gz
|
|
"
|