void-packages/srcpkgs/python-xmltodict/template

37 lines
891 B
Bash
Raw Normal View History

# 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 <thinkabit.ukim@gmail.com>"
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
}
}