maintainer="Bart Ribbers <bribbers@disroot.org>"
pkgname=ovos-gui
pkgver=1.1.0
pkgrel=0
pkgdesc="ovos-core metapackage for gui daemon"
url="https://github.com/OpenVoiceOS/ovos-gui"
arch="noarch"
license="Apache-2.0"
depends="
	py3-ovos-bus-client
	py3-ovos-config
	py3-ovos-plugin-manager
	py3-ovos-utils
	py3-tornado
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos-gui/archive/refs/tags/$pkgver.tar.gz"

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="
5222a9571448e4f487d2d4a85560ed411d033b470166c1d61f9665965b6745b72b7cbe342c48a9da5ad0c8707c610b8f82b6254e67de48f99c56632b27324249  ovos-gui-1.1.0.tar.gz
"
