mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 05:31:25 +02:00
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
# Contributor: Justin Berthault <justin.berthault@zaclys.net>
|
|
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
|
|
pkgname=py3-mypy
|
|
pkgver=0.941
|
|
pkgrel=0
|
|
pkgdesc="Optional static typing for Python (PEP484)"
|
|
options="!check" # Tests fail on builders, pass on CI
|
|
url="https://www.mypy-lang.org/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-mypy-extensions py3-toml py3-typing-extensions py3-typed-ast"
|
|
makedepends="python3-dev py3-setuptools"
|
|
checkdepends="py3-pytest py3-pytest-xdist py3-lxml py3-virtualenv"
|
|
source="https://files.pythonhosted.org/packages/source/m/mypy/mypy-$pkgver.tar.gz"
|
|
builddir="$srcdir/"mypy-$pkgver
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
rm -f \
|
|
mypyc/test/test_analysis.py \
|
|
mypyc/test/test_exceptions.py \
|
|
mypyc/test/test_refcount.py \
|
|
mypyc/test/test_run.py
|
|
py.test-3 -v
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
b29f3debbc0b79afad5417e8db5784c3a725a4dfbed69c22af91558ab798f6bc4f8ad59fbdeb22d16e6e4b3abc21a9bbb71e2075acc5494ace0bc13513880c73 mypy-0.941.tar.gz
|
|
"
|