aports/testing/xml2rfc/APKBUILD
2025-04-18 11:01:00 +00:00

32 lines
856 B
Text

# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=xml2rfc
pkgver=3.28.1
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="
af81c256d28dd9c231827050e18c36467a4e69a53c5e54b9d2c0f32eba82805161631319609d9ea1e851337404dabb4b86aea25c2c268ad97d76a294c4604ec9 xml2rfc-3.28.1.tar.gz
"