mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
62 lines
1.7 KiB
Plaintext
62 lines
1.7 KiB
Plaintext
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-ovos-utils
|
|
pkgver=0.2.1
|
|
pkgrel=0
|
|
pkgdesc="Collection of simple utilities for use across the MyCroft ecosystem"
|
|
url="https://github.com/OpenVoiceOS/ovos_utils"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="
|
|
py3-json-database
|
|
py3-kthread
|
|
py3-orjson
|
|
py3-pexpect
|
|
py3-pyee
|
|
py3-rapidfuzz
|
|
py3-requests
|
|
py3-watchdog
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-dateutil
|
|
py3-pytest
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/OpenVoiceOS/ovos_utils/archive/$pkgver/ovos_utils-$pkgver.tar.gz"
|
|
builddir="$srcdir/ovos-utils-$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
|
|
# Ignored tests cause circular dependencies on py3-ovos-config and ovos-messagebus
|
|
.testenv/bin/python3 -m pytest -k 'not test_event_scheduler_interface and not test_get_source_message' \
|
|
--ignore test/unittests/test_gui.py \
|
|
--ignore test/unittests/test_skills.py \
|
|
--ignore test/unittests/test_time.py \
|
|
--ignore test/unittests/test_events.py \
|
|
--ignore test/unittests/test_audio_utils.py \
|
|
--deselect test/unittests/test_audio_utils.py::TestPlaySounds \
|
|
--deselect test/unittests/test_device_input.py \
|
|
--deselect test/unittests/test_log.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
1bd0b51ecd10f256f6b9c8f38d09692c01be54d69c7a3167174cef124b26355f86cd5d51214ebe58c69a67eefdea929e45740054d80d28bf27c56b245b3e67df ovos_utils-0.2.1.tar.gz
|
|
"
|