# Template file for 'python-defusedxml'
pkgname=python-defusedxml
version=0.6.0
revision=2
archs=noarch
wrksrc="defusedxml-${version}"
build_style=python-module
pycompile_module="defusedxml"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Defusing XML bombs and other exploits (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="Python-2.0"
homepage="https://github.com/tiran/defusedxml"
distfiles="${PYPI_SITE}/d/defusedxml/defusedxml-${version}.tar.gz"
checksum=f684034d135af4c6cbb949b8a4d2ed61634515257a67299e5f940fbaa34377f5

post_install() {
	vlicense LICENSE
}

python3-defusedxml_package() {
	archs=noarch
	depends="python3"
	pycompile_module="defusedxml"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE
	}
}
