aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-typed-ast/APKBUILD
blob: 53838ec582faaa873fc23044178bd9641138d92a (plain) (blame)
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
# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-typed-ast
_pkgname=typed_ast
pkgver=1.4.0
pkgrel=0
pkgdesc="Fork of the Python ast module with type comment support"
url="https://github.com/python/typed_ast"
arch="all"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools python3-dev"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/"$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$builddir/build/lib.linux-$CARCH-3.7" py.test-3 -v
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="b74e7fc51cde16439eae7cf41f0bdb95b5998362eccb73cf736f343cdab64daab63bc0f95f05a4911b229761749bdd31ac83423b58f2f3e1e1dadc7e6015bc1c  typed_ast-1.4.0.tar.gz"