python-pycparser: update to 2.21.

This commit is contained in:
Andrew J. Hesford 2022-09-19 21:07:46 -04:00
parent 412a44303e
commit f86fced752

View file

@ -1,18 +1,22 @@
# Template file for 'python-pycparser'
pkgname=python-pycparser
version=2.20
revision=2
version=2.21
revision=1
wrksrc="pycparser-${version}"
build_style=python-module
pycompile_module="pycparser"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-ply"
checkdepends="python3-ply python3-pytest"
short_desc="Complete C99 parser in pure Python (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/eliben/pycparser"
license="BSD-3-Clause"
distfiles="${PYPI_SITE}/p/pycparser/pycparser-${version}.tar.gz"
checksum=2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0
checksum=e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206
do_check() {
python3 -m pytest
}
post_install() {
# replace bundled copy of ply
@ -25,7 +29,6 @@ post_install() {
python3-pycparser_package() {
depends="python3-ply"
pycompile_module="pycparser"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*