| 1 | # Contributor: Bart Ribbers <[email protected]> |
| 2 | # Maintainer: Bart Ribbers <[email protected]> |
| 3 | pkgname=py3-ovos-lingua-franca |
| 4 | pkgver=0.4.8_alpha3 |
| 5 | pkgrel=3 |
| 6 | pkgdesc="Mycroft's multilingual text parsing and formatting library" |
| 7 | url="https://github.com/OpenVoiceOS/ovos-lingua-franca" |
| 8 | arch="noarch" |
| 9 | license="Apache-2.0" |
| 10 | depends=" |
| 11 | py3-colour |
| 12 | py3-dateutil |
| 13 | py3-quebra-frases |
| 14 | py3-rapidfuzz |
| 15 | py3-webcolors |
| 16 | " |
| 17 | makedepends=" |
| 18 | py3-gpep517 |
| 19 | py3-setuptools |
| 20 | py3-wheel |
| 21 | " |
| 22 | checkdepends="py3-pytest" |
| 23 | subpackages="$pkgname-pyc" |
| 24 | source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos-lingua-franca/archive/refs/tags/V${pkgver//_alpha/a}.tar.gz" |
| 25 | builddir="$srcdir/ovos-lingua-franca-${pkgver//_alpha/a}" |
| 26 | |
| 27 | build() { |
| 28 | gpep517 build-wheel \ |
| 29 | --wheel-dir .dist \ |
| 30 | --output-fd 3 3>&1 >&2 |
| 31 | } |
| 32 | |
| 33 | check() { |
| 34 | python3 -m venv --clear --without-pip --system-site-packages .testenv |
| 35 | .testenv/bin/python3 -m installer .dist/*.whl |
| 36 | .testenv/bin/python3 -m pytest |
| 37 | } |
| 38 | |
| 39 | package() { |
| 40 | python3 -m installer -d "$pkgdir" \ |
| 41 | .dist/*.whl |
| 42 | } |
| 43 | |
| 44 | sha512sums=" |
| 45 | fce6e1aa17215110cc18c8d8a620aab63549492813dfdbe263ba7bc60748108476af7fb28d9b65dfcea46e009c469bb1410ffe752651649966fc3d4909d15d46 py3-ovos-lingua-franca-0.4.8_alpha3.tar.gz |
| 46 | " |