mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 02:36:34 +02:00
52 lines
1.3 KiB
Text
52 lines
1.3 KiB
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
maintainer="Bart Ribbers <bribbers@disroot.org>"
|
|
pkgname=ovos-phal
|
|
pkgver=0.2.7
|
|
pkgrel=0
|
|
pkgdesc="Plugin based Hardware Abstraction Layer for OVOS"
|
|
url="https://github.com/OpenVoiceOS/ovos-PHAL"
|
|
# loongarch64: blocked by py3-ovos-plugin-manager
|
|
arch="noarch !loongarch64"
|
|
license="Apache-2.0"
|
|
depends="
|
|
py3-ovos-bus-client
|
|
py3-ovos-config
|
|
py3-ovos-phal-plugin-connectivity-events
|
|
py3-ovos-phal-plugin-ipgeo
|
|
py3-ovos-phal-plugin-network-manager
|
|
py3-ovos-phal-plugin-oauth
|
|
py3-ovos-phal-plugin-system
|
|
py3-ovos-plugin-manager
|
|
py3-ovos-utils
|
|
py3-ovos-workshop
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos-PHAL/archive/refs/tags/$pkgver.tar.gz"
|
|
builddir="$srcdir/ovos-PHAL-$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="
|
|
912371efef6b75ce034c5de22fcf3998281f5614faf44c3cf1383c6ef9e6b585db60f88d8f8d07ceed609de8baa6cb01b287a20fb05ccc4f3bbcd87396355c83 ovos-phal-0.2.7.tar.gz
|
|
"
|