Skip to content
Snippets Groups Projects
Commit 62dfb901 authored by Bart Ribbers's avatar Bart Ribbers
Browse files

community/py3-gtts: upgrade to 2.2.3 and enable tests

parent bddbb8c0
1 merge request!23287community/py3-gtts: upgrade to 2.2.3 and enable tests
Pipeline #87624 canceled
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-gtts
pkgver=2.2.2
pkgrel=2
pkgver=2.2.3
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"
......@@ -21,8 +21,7 @@ checkdepends="
"
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"
options="net"
builddir="$srcdir/gTTS-$pkgver"
build() {
......@@ -30,11 +29,14 @@ build() {
}
check() {
pytest
# Tests fail currently https://github.com/pndurette/gTTS/issues/220
pytest -k 'not test_file_ascii and not test_file_utf8'
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="3c43ddd35ff55a15f06cde4972055a6216d2e03fc00ebf8ee9aed77738d4849a59a8fcc3572e96bb837a88c83ca084c42e0da1a5aa0bfc14ab8b879407a9168f gTTS-2.2.2.tar.gz"
sha512sums="
13f17c572bd9691cb15c8cb157f2f3b80e50dc11f596a268eccd59ba083dda3552b97238ed6206a08d1437316b7674ac16a0a8aa66e8a65c7dd62388ce716c77 gTTS-2.2.3.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment