1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/community/py3-gtts/APKBUILD
2023-02-26 19:24:13 +00:00

50 lines
1.1 KiB
Text

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-gtts
pkgver=2.3.1
pkgrel=1
pkgdesc="A Python library and CLI tool to interface with Google Translate text-to-speech API"
url="https://github.com/pndurette/gTTS"
arch="noarch"
license="MIT"
depends="
py3-click
py3-requests
python3
"
makedepends="
py3-gpep517
py3-installer
py3-setuptools
py3-wheel
"
checkdepends="
py3-mock
py3-pytest
py3-testfixtures
"
source="https://github.com/pndurette/gTTS/archive/v$pkgver/gTTS-$pkgver.tar.gz"
# Net required for tests
options="net"
builddir="$srcdir/gTTS-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
rm -r "$pkgdir"/usr/lib/python3*/site-packages/gtts/tests/
rm -r "$pkgdir"/usr/lib/python3*/site-packages/gtts/tokenizer/tests/
}
sha512sums="
9b70ea1e5862a3bb9aa0a6d365f084aae022ef48048f51e76be8d35b3a054c88f45e7d65bf5d42aaecc2dd27818edf61e242c2ce679de94b170d0c9621104c9a gTTS-2.3.1.tar.gz
"