mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 12:36:40 +02:00
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-ovos-translate-server-plugin
|
|
pkgver=0.0.0
|
|
pkgrel=0
|
|
pkgdesc="Language Plugin for OVOS translate server"
|
|
url="https://github.com/OpenVoiceOS/ovos-translate-server-plugin"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="py3-requests"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos-translate-server-plugin/archive/refs/tags/V${pkgver//_alpha/a}.tar.gz"
|
|
options="!check" # No tests
|
|
builddir="$srcdir/ovos-translate-server-plugin-${pkgver//_alpha/a}"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
# test_hotword_factory and test_local_recognizer fail
|
|
# https://github.com/MycroftAI/mycroft-core/issues/2574
|
|
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="
|
|
bc9264a636109d250fda776e7b856d4dd3e48b3350909a9117dd1b61eaa6d547e92d047ab0d1cb9546233b7a0ab5e5aee56e8e920f0139a1519fbf9bbb12a57d py3-ovos-translate-server-plugin-0.0.0.tar.gz
|
|
"
|