diff --git a/srcpkgs/python-xmltodict/template b/srcpkgs/python-xmltodict/template new file mode 100644 index 00000000000..306e83a7b54 --- /dev/null +++ b/srcpkgs/python-xmltodict/template @@ -0,0 +1,36 @@ +# Template file for 'python-xmltodict' +pkgname=python-xmltodict +version=0.11.0 +revision=1 +wrksrc="xmltodict-${version}" +build_style=python-module +pycompile_module="xmltodict.py" +hostmakedepends="python-setuptools python3-setuptools" +depends="python" +checkdepends="python3-nose2" +short_desc="Python2 module that makes working with XML feel like working JSON" +maintainer="maxice8 " +license="MIT" +homepage="https://github.com/martinblech/xmltodict" +distfiles="${PYPI_SITE}/x/xmltodict/xmltodict-${version}.tar.gz" +checksum=8f8d7d40aa28d83f4109a7e8aa86e67a4df202d9538be40c0cb1d70da527b0df +noarch=yes + +do_check() { + nosetest +} + +post_install() { + vlicense LICENSE +} + +python3-xmltodict_package() { + noarch=yes + short_desc="${short_desc/Python2/Python3}" + pycompile_module="xmltodict.py" + depends="python3" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-xmltodict b/srcpkgs/python3-xmltodict new file mode 120000 index 00000000000..254a7262e5f --- /dev/null +++ b/srcpkgs/python3-xmltodict @@ -0,0 +1 @@ +python-xmltodict \ No newline at end of file