diff --git a/srcpkgs/python-defusedxml/template b/srcpkgs/python-defusedxml/template new file mode 100644 index 00000000000..fe0393f3c97 --- /dev/null +++ b/srcpkgs/python-defusedxml/template @@ -0,0 +1,31 @@ +# Template file for 'python-defusedxml' +pkgname=python-defusedxml +version=0.5.0 +revision=1 +noarch=yes +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 " +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() { + noarch=yes + depends="python3" + pycompile_module="defusedxml" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-defusedxml b/srcpkgs/python3-defusedxml new file mode 120000 index 00000000000..537bcef0939 --- /dev/null +++ b/srcpkgs/python3-defusedxml @@ -0,0 +1 @@ +python-defusedxml \ No newline at end of file