aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-gtts/APKBUILD
blob: 0a74f3ac10119e178a13eaedb83fb4b3fd04e102 (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-gtts
pkgver=2.2.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="
	py3-beautifulsoup4
	py3-click
	py3-gtts-token
	py3-twine
	python3
	"
makedepends="py3-setuptools"
checkdepends="
	py3-mock
	py3-pytest
	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="5487dc2134c9247073cedcf2ef9df540ac874cefe0626cfbf20118f29cbd87917ff6214853de6e88f9d628722216e783a97610800c21bc166ecb93bdd3ed78ff  gTTS-2.2.1.tar.gz"