# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=py3-dict2xml
_pyname=dict2xml
pkgver=1.7.6
pkgrel=0
pkgdesc="Small utility to convert a python dictionary into an XML string"
url="https://github.com/delfick/python-dict2xml"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-hatchling py3-gpep517 py3-installer"
checkdepends="py3-pytest py3-nose-of-yeti"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/d/dict2xml/dict2xml-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/dict2xml*.whl
}

sha512sums="
54e8330a556e7576d100fbbc036e8c9627872c4c1cbebcaedf137f2b8ad8e197e49b2e699c284f9c8a3d9874fea83eac80d129f67ea426e807e5699f8811b933  dict2xml-1.7.6.tar.gz
"
