2022-11-16 20:09:09 +00:00
|
|
|
# Description: Python HTTP for Humans
|
|
|
|
# URL: https://pypi.org/project/requests/
|
2023-08-06 22:15:01 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2021-09-25 19:39:14 +02:00
|
|
|
# Depends on: python3-chardet python3-idna python3-urllib3
|
2017-02-04 19:51:20 +11:00
|
|
|
|
|
|
|
name=python3-requests
|
2023-05-22 22:09:42 +02:00
|
|
|
version=2.31.0
|
2022-02-18 14:15:15 +01:00
|
|
|
release=1
|
2018-03-15 23:34:12 +11:00
|
|
|
source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz
|
2023-08-06 22:15:01 +02:00
|
|
|
certs.patch)
|
2017-02-04 19:51:20 +11:00
|
|
|
|
|
|
|
build() {
|
2023-08-06 22:15:01 +02:00
|
|
|
cd ${name#*-}-$version
|
2018-03-15 23:34:12 +11:00
|
|
|
|
2023-08-06 22:15:01 +02:00
|
|
|
# Stay with chardet for now: https://github.com/psf/requests/issues/5871
|
2021-09-01 22:27:07 +10:00
|
|
|
|
2023-08-06 22:15:01 +02:00
|
|
|
sed \
|
|
|
|
-e '/certifi/d' \
|
|
|
|
-e "s/,<.*'/'/" \
|
|
|
|
-e '/charset_normalizer/d' \
|
|
|
|
-i setup.py
|
2021-09-01 22:27:07 +10:00
|
|
|
|
2023-08-06 22:15:01 +02:00
|
|
|
patch -p1 -i $SRC/certs.patch
|
2018-03-15 23:34:12 +11:00
|
|
|
|
2023-08-06 22:15:01 +02:00
|
|
|
/usr/bin/python3 setup.py build
|
|
|
|
/usr/bin/python3 setup.py install --prefix=/usr --root=$PKG
|
2017-02-04 19:51:20 +11:00
|
|
|
}
|