# Contributor: Justin Berthault # Maintainer: Justin Berthault pkgname=py3-asttokens pkgver=2.2.1 pkgrel=1 pkgdesc="Annotate AST trees with source code positions" url="https://github.com/gristlabs/asttokens" arch="noarch" license="Apache-2.0" depends="python3 py3-six" makedepends="py3-setuptools py3-setuptools_scm" checkdepends="py3-astroid py3-pytest" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/a/asttokens/asttokens-$pkgver.tar.gz " builddir="$srcdir/"asttokens-$pkgver build() { export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python3 setup.py build } check() { env PYTHONPATH="$PWD/build/lib" py.test-3 -v } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" 0bd2b86e8f8170566de3d26ccce4d897362907e37edf2f7a78fc47326cfb5a2003a3c4fe41d022791aae93ee7953d5a7110849afadd2014e63492809712c9dd7 asttokens-2.2.1.tar.gz "