# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=py3-housekeeping
pkgver=1.1
pkgrel=0
pkgdesc="Housekeeping for Python"
url="https://pypi.org/project/housekeeping/"
arch="noarch"
license="MIT"
depends="python3 py3-typing-extensions"
makedepends="
	py3-gpep517
	py3-wheel
	py3-setuptools
	"
checkdepends="
	py3-pytest
	py3-pytest-env
	"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/h/housekeeping/housekeeping-$pkgver.tar.gz"
builddir="$srcdir/housekeeping-$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
	.testenv/bin/python3 -m installer .dist/*.whl
	.testenv/bin/python3 -m pytest
}

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

sha512sums="
de1dba70a28c50c88cf36de56f400fea4737f42d4497f0c3359a70a2e7e9884b13aab8094abb684be37caaff20aaa21894d3909d2454b473edef594534057644  housekeeping-1.1.tar.gz
"
