python3-requests: Stay with chardet for now: https://github.com/psf/requests/issues/5871

This commit is contained in:
Danny Rawlins 2021-09-01 22:27:07 +10:00
parent c321469e3f
commit cf97426e26
2 changed files with 11 additions and 4 deletions

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF33em3d4eSveUSeHJ5e4PTWnhx4I0bsqnqJptd8im2IiTytPFQZiUGMWA7XL5VPBZbSlo3+DKUNEyiJjbjc8gcwk=
SHA256 (Pkgfile) = 4b7c1852ff78ea6b3049d7883ed566eac15ed571054428b082ce4cd88f963f6b
RWSagIOpLGJF34oIG5dY/1C+86Q0fuSwthBrP/NunMypyV5DZjby/9QivwBITwQUd68INlDANXpUyAPLiO25wiz+qgVNmopEuQU=
SHA256 (Pkgfile) = 7c67b06b712b90a0ec8bd8c0cad75d8e7e26a0531f59dc5292dcafb8ef9182d8
SHA256 (.footprint) = dbf23790bd056083295cca36035bc7208d24c262e9222fcdac50b744a94a2352
SHA256 (requests-2.26.0.tar.gz) = b8aa58f8cf793ffd8782d3d8cb19e66ef36f7aba4353eec859e74678b01b07a7
SHA256 (certs.patch) = 3fa0c8ef2018ef0987d2daff79765b99abd99c539f2ec1241bcf9c31b1a4fd75

View File

@ -5,14 +5,21 @@
name=python3-requests
version=2.26.0
release=1
release=2
source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz
certs.patch)
build() {
cd ${name#*-}-$version
sed -e '/certifi/d' -i setup.py
# Stay with chardet for now: https://github.com/psf/requests/issues/5871
sed \
-e '/certifi/d' \
-e "s/,<.*'/'/" \
-e '/charset_normalizer/d' \
-i setup.py
patch -p1 -i $SRC/certs.patch
/usr/bin/python3 setup.py build