~alpine/aports

testing/py3-googletrans: new aport v1 REJECTED

Eloi Torrents: 1
 testing/py3-googletrans: new aport

 1 files changed, 29 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/4060/mbox | git am -3
Learn more about email & git

[PATCH] testing/py3-googletrans: new aport Export this patch

https://py-googletrans.readthedocs.io/en/latest/
Free Google Translate API for Python
---
 testing/py3-googletrans/APKBUILD | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 testing/py3-googletrans/APKBUILD

diff --git a/testing/py3-googletrans/APKBUILD b/testing/py3-googletrans/APKBUILD
new file mode 100644
index 0000000000..517548a6fd
--- /dev/null
+++ b/testing/py3-googletrans/APKBUILD
@@ -0,0 +1,29 @@
# 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="noarch"
license="MIT"
depends="
	py3-httpx
	python3
	"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.io/packages/source/g/googletrans/googletrans-$pkgver.tar.gz"
builddir="$srcdir/googletrans-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
1a31c52e1fc72ab45131c95ff3649d1d679e3c082adc2b43ba1e5d9bbc57bf740c9e14575c6416e406e6e6e1796cac57330fbb1a639ad96841464e042ef70981  googletrans-3.0.0.tar.gz
"
-- 
2.36.0
Now I don't know how to fix the build for armhf and ppc64le. I also disabled the check and subpackages. I don't know if this is ok.

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/34034#note_234168
the dependency is missing on them, so you just add !armhf !ppc64le to the arch= list with # missing py3-httpx

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/34034#note_234172