[arch-commits] Commit in python-aiohttp-socks/trunk (PKGBUILD)

Jonas Witschel diabonas at gemini.archlinux.org
Fri Nov 12 15:06:44 UTC 2021


    Date: Friday, November 12, 2021 @ 15:06:44
  Author: diabonas
Revision: 1043788

upgpkg: python-aiohttp-socks 0.6.0-1: upstream release

aiohttp-socks 0.4.2 will stop working with the recently released aiohttp 2.8.0 due to the following error:

  File "/usr/lib/python3.9/site-packages/aiohttp_socks/connector.py", line 8, in <module>
    from aiohttp.helpers import CeilTimeout  # noqa
ImportError: cannot import name 'CeilTimeout' from 'aiohttp.helpers'

Modified:
  python-aiohttp-socks/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-12 15:06:23 UTC (rev 1043787)
+++ PKGBUILD	2021-11-12 15:06:44 UTC (rev 1043788)
@@ -1,19 +1,27 @@
 # Maintainer: Santiago Torres-Arias <santiago at archlinux.org>
 
 pkgname=python-aiohttp-socks
-pkgver=0.4.2
-pkgrel=3
+pkgver=0.6.0
+pkgrel=1
 pkgdesc="SOCKS proxy connector for aiohttp. SOCKS4(a) and SOCKS5 are supported."
 arch=('any')
 url="https://github.com/romis2012/aiohttp-socks/"
 license=('Apache')
-depends=('python-aiohttp')
+depends=('python-aiohttp' 'python-python-socks')
 makedepends=('git' 'python' 'python-setuptools')
-checkdepends=('python-pytest' 'python-pytest-asyncio')
-source=("git+https://github.com/romis2012/aiohttp-socks?signed#tag=v${pkgver}")
-sha256sums=('SKIP')
+checkdepends=('python-flask' 'python-pytest' 'python-pytest-asyncio')
+source=("git+https://github.com/romis2012/aiohttp-socks?signed#tag=v${pkgver}"
+        "python-aiohttp-socks-0.6.0_fix_test_suite.patch::$url/commit/266505841d1c70b9b7ead36a98d3da28c429e33f.patch")
+sha256sums=('SKIP'
+            '8605ac8062d75e206f4a80bf66c42806f567955c4ca610dd2f20b7cc2fcdcac8')
 validpgpkeys=('706A8935FED55F3BFB7C188B5EEAD7400A5D80ED') # Roman Snegirev (maintainer)
 
+prepare() {
+    cd "${pkgname//python-}"
+    # Fix test suite failures due to expired certificates
+    patch --forward --strip=1 --input="$srcdir/python-aiohttp-socks-0.6.0_fix_test_suite.patch"
+}
+
 check() {
     cd "${pkgname//python-}"
     pytest



More information about the arch-commits mailing list