# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=xml2rfc
pkgver=3.24.0
pkgrel=0
pkgdesc="tool for converting XML documents into internet drafts and RFCs"
options="!check" # Requires unpackaged i18naddress
url="https://github.com/ietf-tools/xml2rfc"
arch="noarch"
license="BSD-2-Clause"
depends="python3 py3-six py3-requests py3-lxml"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/x/xml2rfc/xml2rfc-$pkgver.tar.gz"

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

check() {
	python3 test.py
}

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

sha512sums="
a559adb924fd4cacd5c79a97c42d7cd210f334137fd378fe22c04354cf8b7312656ec67387311e27c96b4348cd6fd55c20a5bfbe6da158630770b157e8ee6ee1  xml2rfc-3.24.0.tar.gz
"
