aports/testing/py3-rfc-bibtex/APKBUILD
2024-08-06 14:59:49 +02:00

36 lines
1.2 KiB
Text

# Contributor: Marian Buschsieweke <marian.buschsieweke@posteo.net>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
pkgname=py3-rfc-bibtex
_pkgname=${pkgname#py3-}
pkgver=0.3.2
pkgrel=7
pkgdesc="Command line tool that creates BibTex entries for IETF RFCs and Internet Drafts"
url="https://github.com/iluxonchik/rfc-bibtex/"
arch="noarch"
license="MIT"
makedepends="py3-setuptools py3-gpep517"
depends="py3-idna py3-multidict py3-yaml py3-vcrpy py3-wrapt py3-yarl"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/iluxonchik/rfc-bibtex/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
.testenv/bin/python3 -m unittest discover tests
}
package() {
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="
be67bf6e05df333333375e002344d2ca5fda133efbdcc400541ccc9c50b0452f1f52a1f65ec8f157930070fb44e05e0c1d26f220212112af0b0133f641156296 py3-rfc-bibtex-0.3.2.tar.gz
"