mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 18:55:29 +03:00
While building py3-blist I found that it complained about not finding the toml module in py3-mypy code, so let's fix that.
36 lines
1 KiB
Text
36 lines
1 KiB
Text
# Contributor: Justin Berthault <justin.berthault@zaclys.net>
|
|
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
|
|
pkgname=py3-mypy
|
|
pkgver=0.910
|
|
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="
|
|
2f8caa6945db992ae3a20c47904a023a62cc2f98296c136d7d09ac5f0a0d83b833b4c3ef811f1369e647860fb9a194d120225333a62daf055af12f39fb45a552 mypy-0.910.tar.gz
|
|
"
|