diff --git a/package/python-requests/0001-Allow-idna-3.x-to-be-installed-on-Python-3.x.patch b/package/python-requests/0001-Allow-idna-3.x-to-be-installed-on-Python-3.x.patch new file mode 100644 index 0000000000..ea9ad15df2 --- /dev/null +++ b/package/python-requests/0001-Allow-idna-3.x-to-be-installed-on-Python-3.x.patch @@ -0,0 +1,33 @@ +From d747c4753484aa9b90a094d6bf7ec45e5acfb623 Mon Sep 17 00:00:00 2001 +From: Naor Livne +Date: Wed, 7 Jul 2021 16:25:20 +0300 +Subject: [PATCH] Allow idna 3.x to be installed on Python 3.x +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Co-authored-by: Mickaël Schoentgen +Co-authored-by: Seth Michael Larson +(cherry picked from commit 33cf965f7271ab4978ed551754db37865c4085db) +Signed-off-by: Romain Naour +--- + setup.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 7ba4b2a2..83d78665 100755 +--- a/setup.py ++++ b/setup.py +@@ -43,7 +43,8 @@ packages = ['requests'] + + requires = [ + 'chardet>=3.0.2,<5', +- 'idna>=2.5,<3', ++ 'idna>=2.5,<3; python_version < "3"', ++ 'idna>=2.5,<4; python_version >= "3"', + 'urllib3>=1.21.1,<1.27', + 'certifi>=2017.4.17' + +-- +2.31.1 + diff --git a/package/python3-requests/0001-Allow-idna-3.x-to-be-installed-on-Python-3.x.patch b/package/python3-requests/0001-Allow-idna-3.x-to-be-installed-on-Python-3.x.patch new file mode 100644 index 0000000000..ea9ad15df2 --- /dev/null +++ b/package/python3-requests/0001-Allow-idna-3.x-to-be-installed-on-Python-3.x.patch @@ -0,0 +1,33 @@ +From d747c4753484aa9b90a094d6bf7ec45e5acfb623 Mon Sep 17 00:00:00 2001 +From: Naor Livne +Date: Wed, 7 Jul 2021 16:25:20 +0300 +Subject: [PATCH] Allow idna 3.x to be installed on Python 3.x +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Co-authored-by: Mickaël Schoentgen +Co-authored-by: Seth Michael Larson +(cherry picked from commit 33cf965f7271ab4978ed551754db37865c4085db) +Signed-off-by: Romain Naour +--- + setup.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 7ba4b2a2..83d78665 100755 +--- a/setup.py ++++ b/setup.py +@@ -43,7 +43,8 @@ packages = ['requests'] + + requires = [ + 'chardet>=3.0.2,<5', +- 'idna>=2.5,<3', ++ 'idna>=2.5,<3; python_version < "3"', ++ 'idna>=2.5,<4; python_version >= "3"', + 'urllib3>=1.21.1,<1.27', + 'certifi>=2017.4.17' + +-- +2.31.1 +