aports/testing/py3-ovos-config/APKBUILD
2025-04-08 07:42:10 +00:00

46 lines
1 KiB
Text

maintainer="Bart Ribbers <bribbers@disroot.org>"
pkgname=py3-ovos-config
pkgver=1.1.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="
d1139ad2c69768a1b154caa1a8f082b1725e99b55ddd87b45bb2837d2a844393ecdca3a28e80ff74af83e81c6035746353cd32048a4798a6a566a78c1f273092 ovos-config-1.1.0.tar.gz
"