git » python-requests-toolbelt.git » commit f89f31e

Apply patch fixing deprecated usage of ABCs in collections

author Johannes Löthberg
2021-12-02 14:30:34 UTC
committer Johannes Löthberg
2021-12-02 14:30:34 UTC
parent ed46c45b14da2094a02d77060cda88118d38b7aa

Apply patch fixing deprecated usage of ABCs in collections

PKGBUILD +9 -2

diff --git a/PKGBUILD b/PKGBUILD
index 0533b77..6a42cb8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,8 +11,15 @@ license=('Apache')
 depends=('python-requests')
 makedepends=('python-setuptools' 'python-requests')
 checkdepends=('python-pytest' 'python-betamax' 'python-mock' 'python-pyopenssl')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/requests/toolbelt/archive/$pkgver.tar.gz")
-sha512sums=('12667056c225ce0bc88a5959660103feed23810890abd3890ef15581aa64c09c0552c3974473e1742cbe6200bd37d6475ad34ec051e83d4fbf0a33f320dbc0cc')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/requests/toolbelt/archive/$pkgver.tar.gz"
+        '7188b06330e5260be20bce8cbcf0d5ae44e34eaf.patch::https://github.com/requests/toolbelt/commit/7188b06330e5260be20bce8cbcf0d5ae44e34eaf.patch')
+sha512sums=('12667056c225ce0bc88a5959660103feed23810890abd3890ef15581aa64c09c0552c3974473e1742cbe6200bd37d6475ad34ec051e83d4fbf0a33f320dbc0cc'
+            '3265c1cc903ee878fecc0a98be935c4471c89c4ed0def6c0862d581b7ca84e97b402dd6e532127d5eca7b04d8f78127116c06324c1bf5199994406cc6c37006e')
+
+prepare() {
+  cd "$srcdir"/toolbelt-$pkgver
+  patch -p1 <"$srcdir"/7188b06330e5260be20bce8cbcf0d5ae44e34eaf.patch
+}
 
 build() {
   cd "$srcdir"/toolbelt-$pkgver