blob: da9da93f5e24c4f475e727bff2a22a6b8852fb67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-gtts
pkgver=2.1.1
pkgrel=0
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="python3 py3-twine py3-gtts-token py3-click py3-beautifulsoup4"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-mock py3-testfixtures"
source="https://pypi.python.org/packages/source/g/gTTS/gTTS-$pkgver.tar.gz"
# Net required for tests
# Tests fail currently https://github.com/pndurette/gTTS/issues/220
options="!check"
builddir="$srcdir/gTTS-$pkgver"
build() {
python3 setup.py build
}
check() {
pytest
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="bbffe64ce8821a6fcc2f8146a07d1e06cda95b791544f1dcdf7cf687e9c39818fc299baca52e5c14306a1954ec7a9906638aea238334e7be9af45c96e9aebd7e gTTS-2.1.1.tar.gz"
|