python3-requests: adopted port

This commit is contained in:
Tim Biermann 2023-08-06 22:15:01 +02:00
parent 6bb3a3710f
commit b528fa1d8d
Signed by: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 14 additions and 14 deletions

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF313KgNpobH9XGCLfSQJTFtOpLWUTr1djBktqrIuxdFYQGjmVovydSxfbiOCJHtMB+Iu2ucDl2GLmaoc1d5a32gA=
SHA256 (Pkgfile) = 3172900abfe96d0aa7e7e6950666a2461d4140b617da96d98996052d1531a178
RWSagIOpLGJF3yYGVAsV2B4E0+pyth4vjgixLabnHHobOqqjiQbg9etLKu6JQPG2kUQid3cObCqEwK1uNJBgD8z6o+mUPwKpkAA=
SHA256 (Pkgfile) = e6c8496ba076f18db323306dccbb8d3b5be4e3066fa5cf2783810212a7b1ca9d
SHA256 (.footprint) = e8636edd78def7c390ba1d9a2db2144620ff1907bcb756a675783d9bf36b76bb
SHA256 (requests-2.31.0.tar.gz) = 942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1
SHA256 (certs.patch) = 3fa0c8ef2018ef0987d2daff79765b99abd99c539f2ec1241bcf9c31b1a4fd75

View File

@ -1,27 +1,27 @@
# Description: Python HTTP for Humans
# URL: https://pypi.org/project/requests/
# Maintainer: Danny Rawlins, crux at romster dot me
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-chardet python3-idna python3-urllib3
name=python3-requests
version=2.31.0
release=1
source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz
certs.patch)
certs.patch)
build() {
cd ${name#*-}-$version
cd ${name#*-}-$version
# Stay with chardet for now: https://github.com/psf/requests/issues/5871
# 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
sed \
-e '/certifi/d' \
-e "s/,<.*'/'/" \
-e '/charset_normalizer/d' \
-i setup.py
patch -p1 -i $SRC/certs.patch
patch -p1 -i $SRC/certs.patch
/usr/bin/python3 setup.py build
/usr/bin/python3 setup.py install --prefix=/usr --root=$PKG
/usr/bin/python3 setup.py build
/usr/bin/python3 setup.py install --prefix=/usr --root=$PKG
}