maintainer="Bart Ribbers <bribbers@disroot.org>"
pkgname=py3-ovos-phal-plugin-oauth
pkgver=0.1.3
pkgrel=0
pkgdesc="OAuth plugin for OVOS"
url="https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth"
arch="noarch"
license="Apache-2.0"
depends="
	py3-flask
	py3-oauthlib
	py3-ovos-backend-client
	py3-ovos-bus-client
	py3-ovos-utils
	py3-pillow
	py3-qrcode
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos-PHAL-plugin-oauth/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/ovos-PHAL-plugin-oauth-$pkgver"

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

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

sha512sums="
b55e1452f5513b7911769db4283eb798c3a3711308cf5e1f780478540ba22918da2b1fe4d735327106ba174a8d9b0870c6d256ef51dd65ec69345f4924e9026a  py3-ovos-phal-plugin-oauth-0.1.3.tar.gz
"
