32 lines
823 B
Bash
32 lines
823 B
Bash
# Template file for 'python-defusedxml'
|
|
pkgname=python-defusedxml
|
|
version=0.5.0
|
|
revision=1
|
|
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>"
|
|
homepage="https://github.com/tiran/defusedxml"
|
|
license="Python-2.0"
|
|
distfiles="${PYPI_SITE}/d/defusedxml/defusedxml-${version}.tar.gz"
|
|
checksum=24d7f2f94f7f3cb6061acb215685e5125fbcdc40a857eff9de22518820b0a4f4
|
|
|
|
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
|
|
}
|
|
}
|