aports/testing/py3-ovos-backend-client/APKBUILD
2024-06-09 01:18:27 +02:00

48 lines
1.2 KiB
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-ovos-backend-client
pkgver=0.1.0
pkgrel=0
pkgdesc="Unofficial python api for interaction with https://api.mycroft.ai"
url="https://github.com/OpenVoiceOS/ovos-backend-client"
# loongarch64: blocked by py3-ovos-plugin-manager
arch="noarch !loongarch64"
license="Apache-2.0"
depends="
py3-json-database
py3-ovos-bus-client
py3-ovos-plugin-manager
py3-ovos-utils
py3-timezonefinder
"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/OpenVoiceOS/ovos-backend-client/archive/V$pkgver/ovos-backend-client-$pkgver.tar.gz"
builddir="$srcdir/ovos-backend-client-$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="
cf50d0d48019c27b28e845c24b5e7b710eb07554ba16f3a3c356fb28219925e9ce0c5832d345477ab7cce5e5b97f9b808a8bacc155a7db72eb0d162b80985b26 ovos-backend-client-0.1.0.tar.gz
"