# Contributor: Andy Hawkins <andy@gently.org.uk>
# Maintainer: Andy Hawkins <andy@gently.org.uk>
pkgname=py3-inform
pkgver=1.34
pkgrel=0
pkgdesc="Print & Logging Utilities"
url="https://inform.readthedocs.io/"
arch="noarch"
license="GPL-3.0-or-later"
depends="
	python3
	py3-arrow
	py3-six
	"
makedepends="
	py3-flit-core
	py3-gpep517
	"
checkdepends="
	py3-pytest
	py3-pytest-cov
	py3-hypothesis
	py3-num2words
	"
subpackages="$pkgname-pyc"
source="https://github.com/KenKundert/inform/archive/v$pkgver/inform-v$pkgver.tar.gz"
builddir="$srcdir/inform-$pkgver"

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

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/inform-$pkgver*-py3-none-any.whl
}

sha512sums="
fc01930f9c706b519ec9eb7adc364aef97d82c1518e64671105066095bfd783e14fcb0bffc3f3435f7bd5ac840f17b442ce8d6dd7e10267c93d3ca07a754f565  inform-v1.34.tar.gz
"
