aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEloi Torrents <eloitor@disroot.org>2022-05-09 10:37:52 +0200
committerdispatch <dispatch@listserv.local>2022-05-09 08:40:08 +0000
commit0d8eb359d0b6cb7279bcac67514156ae18158a64 (patch)
treebf79ccf8cdbeae9d8eb17c75c9e0395813e385e5
parentbe7d8606ac44df3539311ea8ee03f0a5484636e0 (diff)
downloadaports-patches/4067.tar.gz
aports-patches/4067.tar.bz2
aports-patches/4067.tar.xz
testing/py3-googletrans: patched client.pypatches/4067
-rw-r--r--testing/py3-googletrans/APKBUILD6
-rw-r--r--testing/py3-googletrans/client.patch12
2 files changed, 17 insertions, 1 deletions
diff --git a/testing/py3-googletrans/APKBUILD b/testing/py3-googletrans/APKBUILD
index 51f6aca119..ad237efd48 100644
--- a/testing/py3-googletrans/APKBUILD
+++ b/testing/py3-googletrans/APKBUILD
@@ -13,7 +13,10 @@ depends="
"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
-source="https://pypi.io/packages/source/g/googletrans/googletrans-$pkgver.tar.gz"
+source="
+ https://pypi.io/packages/source/g/googletrans/googletrans-$pkgver.tar.gz
+ client.patch
+ "
builddir="$srcdir/googletrans-$pkgver"
build() {
@@ -26,4 +29,5 @@ package() {
sha512sums="
1a31c52e1fc72ab45131c95ff3649d1d679e3c082adc2b43ba1e5d9bbc57bf740c9e14575c6416e406e6e6e1796cac57330fbb1a639ad96841464e042ef70981 googletrans-3.0.0.tar.gz
+00eaccaa3da8ebc7d18cde5970683667871fe849b510ce7609ee2b7a3c84d4fa60e89a51104be3b90f6fcff79580e6c438a5411a94fa7e846fcab6061409a062 client.patch
"
diff --git a/testing/py3-googletrans/client.patch b/testing/py3-googletrans/client.patch
new file mode 100644
index 0000000000..5f1c125627
--- /dev/null
+++ b/testing/py3-googletrans/client.patch
@@ -0,0 +1,12 @@
+--- a/googletrans/client.py
++++ b/googletrans/client.py
+@@ -52,7 +52,7 @@
+
+ def __init__(self, service_urls=None, user_agent=DEFAULT_USER_AGENT,
+ raise_exception=DEFAULT_RAISE_EXCEPTION,
+- proxies: typing.Dict[str, httpcore.SyncHTTPTransport] = None, timeout: Timeout = None):
++ proxies: typing.Dict[str, httpcore.HTTPProxy] = None, timeout: Timeout = None):
+
+ self.client = httpx.Client()
+ if proxies is not None: # pragma: nocover
+