# Contributor: Bart Ribbers # Maintainer: pkgname=py3-gtts pkgver=2.3.2 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 " subpackages="$pkgname-pyc" 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=" 4cb91bb317e30812b4343250c909190de055dda2030163ca43e59ae9739400c073f2bfe1dd1b5660a9be8ac2438fa4db9b63cafd8db09ff950a5e5e88e324fc1 gTTS-2.3.2.tar.gz "