aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-09-22 00:09:14 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-09-22 00:09:26 -0300
commit93aef32bda55bcfb938aeb2d3af540525569aaa2 (patch)
tree55e0f2e3e6bd507a37f2fcdba30952d73d2f921b
parent6e41d1f945c81d9b1761fb7f008a282789e0e9c1 (diff)
downloadaports-93aef32bda55bcfb938aeb2d3af540525569aaa2.tar.gz
aports-93aef32bda55bcfb938aeb2d3af540525569aaa2.tar.bz2
aports-93aef32bda55bcfb938aeb2d3af540525569aaa2.tar.xz
main/py3-requests: remove dependency on certifi
-rw-r--r--main/py3-requests/APKBUILD6
-rw-r--r--main/py3-requests/dont-depend-on-certifi.patch17
2 files changed, 21 insertions, 2 deletions
diff --git a/main/py3-requests/APKBUILD b/main/py3-requests/APKBUILD
index 364f4d774d..d5455d607f 100644
--- a/main/py3-requests/APKBUILD
+++ b/main/py3-requests/APKBUILD
@@ -3,7 +3,7 @@
pkgname=py3-requests
_pkgname=requests
pkgver=2.24.0
-pkgrel=1
+pkgrel=2
pkgdesc="A HTTP request library for Python3"
url="http://www.python-requests.org/"
arch="noarch"
@@ -18,6 +18,7 @@ makedepends="py3-setuptools"
source="
https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
certs.patch
+ dont-depend-on-certifi.patch
"
builddir="$srcdir/$_pkgname-$pkgver"
@@ -33,4 +34,5 @@ package() {
}
sha512sums="46ca8ab70eb39be8398c242404b9b3ffb6baddd5c78eaad125b55c719154eb8c7b6a737a8dc587b0cb51b3b9a074abaa8b2ff347a64d38f4f90cdba4db16a119 requests-2.24.0.tar.gz
-424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3 certs.patch"
+424a3bb01b23409284f6c9cd2bc22d92df31b85cfd96e1d1b16b5d68adeca670dfed4fff7977d8b10980102b0f780eacc465431021fcd661f3a17168a02a39a3 certs.patch
+4d1373825f1befba2e1335f65f980de7a55168d05ada9a3f1c566893322e1330f2f61fcaaa51efebe3962e73e843e500ce79c1a9def0c9d4044dc74beb460f9e dont-depend-on-certifi.patch"
diff --git a/main/py3-requests/dont-depend-on-certifi.patch b/main/py3-requests/dont-depend-on-certifi.patch
new file mode 100644
index 0000000000..184c5c430c
--- /dev/null
+++ b/main/py3-requests/dont-depend-on-certifi.patch
@@ -0,0 +1,17 @@
+Upstream: Not applicable
+Reason: Make it not depend on certifi, we patch system certificates in
+
+diff --git a/setup.py b/setup.py
+index 2da9ba0..5147636 100755
+--- a/setup.py
++++ b/setup.py
+@@ -44,8 +44,7 @@ packages = ['requests']
+ requires = [
+ 'chardet>=3.0.2,<4',
+ 'idna>=2.5,<3',
+- 'urllib3>=1.21.1,<1.26,!=1.25.0,!=1.25.1',
+- 'certifi>=2017.4.17'
++ 'urllib3>=1.21.1,<1.26,!=1.25.0,!=1.25.1'
+
+ ]
+ test_requirements = [