# Contributor: # Maintainer: Peter Shkenev pkgname=py3-cparser _pkgname=pycparser pkgver=2.21 pkgrel=3 pkgdesc="C parser written in Python3" url="https://github.com/eliben/pycparser" arch="noarch" license="BSD-3-Clause" depends="python3" makedepends="py3-setuptools" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-cparser" # Backwards compatibility provides="py-cparser=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { python3 -m pytest } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" e61fbdde484d1cf74d4b27bdde40cf2da4b7028ca8ecd37c83d77473dab707d457321aecaf97da3b114c1d58a4eb200290b76f9c958044b57e5fed949895b5f0 pycparser-2.21.tar.gz "