aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEloi Torrents <eloitor@disroot.org>2022-05-06 14:36:48 +0200
committerdispatch <dispatch@listserv.local>2022-05-06 12:40:14 +0000
commita2e25008cee872711194aa46177b3c0c0765bbe7 (patch)
treea959767b5d505cd60243a86aa125d9d069eb6bb9
parent74f2b88de58dc889fbf53ec0a40f6ef984282fa8 (diff)
downloadaports-patches/4058.tar.gz
aports-patches/4058.tar.bz2
aports-patches/4058.tar.xz
testing/py3-googletrans: new aportpatches/4058
https://py-googletrans.readthedocs.io/en/latest/ Free Google Translate API for Python
-rw-r--r--testing/py3-googletrans/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/py3-googletrans/APKBUILD b/testing/py3-googletrans/APKBUILD
new file mode 100644
index 0000000000..64f9215b1f
--- /dev/null
+++ b/testing/py3-googletrans/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Eloi Torrents <eloitor@disroot.org>
+# Maintainer: Eloi Torrents <eloitor@disroot.org>
+pkgname=py3-googletrans
+pkgver=3.0.0
+pkgrel=0
+pkgdesc="Free Google Translate API for Python"
+url="https://py-googletrans.readthedocs.io/en/latest/"
+arch="all"
+license="MIT"
+depends="
+ py3-httpx
+ python3
+ "
+makedepends="py3-setuptools"
+checkdepends="py3-pytest"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://pypi.io/packages/source/g/googletrans/googletrans-$pkgver.tar.gz"
+builddir="$srcdir/"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ pytest
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="
+1a31c52e1fc72ab45131c95ff3649d1d679e3c082adc2b43ba1e5d9bbc57bf740c9e14575c6416e406e6e6e1796cac57330fbb1a639ad96841464e042ef70981 googletrans-3.0.0.tar.gz
+"