# Contributor: Kevin Daudt # Maintainer: Kevin Daudt pkgname=py-parso pkgver=0.5.1 pkgrel=0 pkgdesc="a Python parser that supports error recovery and round-trip parsing for different Python versions" url="https://pypi.org/project/parso/" arch="noarch" license="MIT" makedepends="python3-dev py3-setuptools" checkdepends="py3-tox" depends="python3" source="https://files.pythonhosted.org/packages/source/p/parso/parso-$pkgver.tar.gz" builddir="$srcdir/parso-$pkgver" build() { python3 setup.py build } _tox_pyver() { local _pyver=$(python3 -c 'import sys; print(str(sys.version_info[0])+str(sys.version_info[1]))') echo py$_pyver } check() { tox -e $(_tox_pyver) } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="547a9d2ad53a1d4a82cabecb346840619833af6f0070432d8a439509934c76c65e5bbd015336a9ea1ad503dd21573098ee4f46b004bf5afb6c94c99912a77d98 parso-0.5.1.tar.gz"