Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 4363478145E for ; Mon, 9 May 2022 08:40:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 0FEB043601; Mon, 9 May 2022 10:34:35 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YZ9SfwbG7M93; Mon, 9 May 2022 10:34:33 +0200 (CEST) From: Eloi Torrents DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1652085273; bh=euwMC2PSLnBAu7wcw6gjabNMN5PzTAHSjTtFRUPo2e8=; h=From:To:Cc:Subject:Date; b=a9lexI0OOt5NpkuAURMVX5YitoiqXQ7vXCiJv+Sbg8ozEz0uyoGP08tXKepuSRUpb mlrOk3d+tAbm6w8Js9igm3LbrWaba4rnZtio7U1Urnc31DDBZVjfRYfNZThmOj+vzB RiTBbIl90DZ9tD8tAq3H2r00Ag7g+FE0HzIbORMNf9NvtWHHFfiarvUw6T0B70YF1T CKaEO6+Iu7yWiDnSBzRHWT8wQxKL8395qzm5AvjjQk4/zldz5bVJebSJWaOfU5fKM/ gGS8fZPr6fo7bE/oGyCcMt0Vc+4774AyxINPTJdzWf6A0X+QkYj2F76zl92xsmRg/c CXnfjXJQ+7Hiw== To: alpine-aports@lists.alpinelinux.org Cc: Eloi Torrents Subject: [PATCH] testing/py3-googletrans: patched client.py Date: Mon, 9 May 2022 10:37:52 +0200 Message-Id: <20220509083752.1244-1-eloitor@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit --- testing/py3-googletrans/APKBUILD | 6 +++++- testing/py3-googletrans/client.patch | 12 ++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 testing/py3-googletrans/client.patch 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 + -- 2.36.0