mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 00:16:45 +02:00
49 lines
1.3 KiB
Text
49 lines
1.3 KiB
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
maintainer="Bart Ribbers <bribbers@disroot.org>"
|
|
pkgname=py3-ovos-bus-client
|
|
pkgver=1.0.4
|
|
pkgrel=0
|
|
pkgdesc="A simple interface for the mycroft messagebus and can be used to connect to ovos"
|
|
url="https://github.com/OpenVoiceOS/ovos-bus-client"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="
|
|
py3-orjson
|
|
py3-ovos-config
|
|
py3-ovos-utils
|
|
py3-ovos-utils
|
|
py3-pyee
|
|
py3-websocket-client
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos-bus-client/archive/refs/tags/$pkgver.tar.gz"
|
|
builddir="$srcdir/ovos-bus-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
|
|
# Disabled tests have broken imports
|
|
.testenv/bin/python3 -m pytest -k 'not test_class_patching and not test_inheritance and not test_create_client' \
|
|
--ignore test/unittests/test_compat.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
32db03b96c935088b48f97a8be09778fe9b77cf79e93bcb7db5acf3847b8f3f7d4efdc5e8e898d613f00bb8a1e514e6e69a065b5e46608848e13ba7d631bfe39 py3-ovos-bus-client-1.0.4.tar.gz
|
|
"
|