# Template file for 'python-parsing'
pkgname=python-parsing
version=2.2.1
revision=1
noarch=yes
wrksrc="pyparsing-pyparsing_${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
pycompile_module="pyparsing.py"
short_desc="Python parsing module (Python2)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
homepage="http://pyparsing.wikispaces.com/"
changelog="https://github.com/pyparsing/pyparsing/raw/master/CHANGES"
distfiles="https://github.com/pyparsing/pyparsing/archive/pyparsing_${version}.tar.gz"
checksum=25cafba8e402f775b58cee0924ef5359c5bc3ba3e8e8b038d0f92674c8a47a79

do_check() {
	python unitTests.py
	python3 unitTests.py
}

post_install() {
	vlicense LICENSE
}

python3-parsing_package() {
	noarch=yes
	depends="python3"
	pycompile_module="pyparsing.py"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE
	}
}
