maintainer="Bart Ribbers <bribbers@disroot.org>"
pkgname=py3-ovos-config
pkgver=1.2.0
pkgrel=0
pkgdesc="OVOS configuration manager library"
url="https://github.com/OpenVoiceOS/ovos-config"
arch="noarch"
license="Apache-2.0"
depends="
	py3-combo-lock
	py3-dateutil
	py3-ovos-utils
	py3-rich-click
	py3-watchdog
	py3-yaml
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/OpenVoiceOS/ovos-config/archive/$pkgver/ovos-config-$pkgver.tar.gz"
builddir="$srcdir/ovos-config-$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="
a5efa10808996f26e2a896b33489dbe665d34834bd117adf9e65957fc56d76f3d9628eba239381f76333e856ab4a3aea27d71b34e74ac896cba7f3b5dbb462a9  ovos-config-1.2.0.tar.gz
"
