mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 23:06:40 +02:00
this is only a partial rebuild, including stuff that i built on my personal machine with python 3.12.2; might fail with 3.12.3
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=rhasspy-nlu
|
|
pkgver=0.4.0
|
|
pkgrel=3
|
|
pkgdesc="Natural language understanding library for Rhasspy"
|
|
url="https://github.com/rhasspy/rhasspy-nlu"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-grapheme py3-numpy py3-networkx py3-num2words"
|
|
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/rhasspy/rhasspy-nlu/archive/refs/tags/v$pkgver/rhasspy-nlu-$pkgver.tar.gz"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
rm -rf "$pkgdir"/usr/lib/python*/site-packages/tests
|
|
}
|
|
|
|
sha512sums="
|
|
fbb4ab21d8b11a1d3c5c26445795d28567eabd532bc332446b75236fc0856abf6c1ede423620b717d2ff8294b69b9265e3ea53a5cb397df2f4e959fa9805a47d rhasspy-nlu-0.4.0.tar.gz
|
|
"
|