From 66a817960d9dffb9f3253dd43e7f07b714ce932e Mon Sep 17 00:00:00 2001 From: maxice8 Date: Tue, 13 Feb 2018 16:53:55 -0200 Subject: [PATCH] New package: python-xmltodict-0.11.0. Closes: #11472 [via git-merge-pr] --- srcpkgs/python-xmltodict/template | 36 +++++++++++++++++++++++++++++++ srcpkgs/python3-xmltodict | 1 + 2 files changed, 37 insertions(+) create mode 100644 srcpkgs/python-xmltodict/template create mode 120000 srcpkgs/python3-xmltodict 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