mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
54 lines
1.5 KiB
Text
54 lines
1.5 KiB
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-ovos-classifiers
|
|
pkgver=0.0.0_alpha53
|
|
pkgrel=0
|
|
pkgdesc="Open during construction"
|
|
url="https://github.com/OpenVoiceOS/ovos-classifiers"
|
|
# loongarch64: blocked by py3-ovos-plugin-manager
|
|
arch="noarch !loongarch64"
|
|
license="Apache-2.0"
|
|
depends="
|
|
py3-dateutil
|
|
py3-joblib
|
|
py3-nltk
|
|
py3-ovos-utils
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-ovos-plugin-manager
|
|
py3-pytest
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos-classifiers/archive/refs/tags/V${pkgver//_alpha/a}.tar.gz
|
|
assertEquals.patch
|
|
"
|
|
builddir="$srcdir/ovos-classifiers-${pkgver//_alpha/a}"
|
|
|
|
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
|
|
# test/unittests/test_opm.py is broken
|
|
.testenv/bin/python3 -m pytest \
|
|
--ignore test/unittests/test_opm.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
da63152efa5189c614732ea611af4ad115d14a0c48cf35b84cf7f6a8ae6f1eab7dee4df42ca0af88434eda654e4da08df88f95970d959f2ca129ca8e9296e69d py3-ovos-classifiers-0.0.0_alpha53.tar.gz
|
|
6ed6be4095a9bcf07196c5ee867fcb6c53114dc7f5c4a58eac52371ab63e629e39b3f9cf15f80e2bf74be7f5439072c02beedcecd3e4f2e8db839eead0a308bb assertEquals.patch
|
|
"
|