contrib/python3-requests/Pkgfile

28 lines
704 B
Plaintext
Raw Normal View History

2022-11-16 21:09:09 +01: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
# Depends on: python3-chardet python3-idna python3-urllib3
2017-02-04 09:51:20 +01: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 13:34:12 +01: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 09:51:20 +01:00
build() {
2023-08-06 22:15:01 +02:00
cd ${name#*-}-$version
2018-03-15 13:34:12 +01:00
2023-08-06 22:15:01 +02:00
# Stay with chardet for now: https://github.com/psf/requests/issues/5871
2023-08-06 22:15:01 +02:00
sed \
-e '/certifi/d' \
-e "s/,<.*'/'/" \
-e '/charset_normalizer/d' \
-i setup.py
2023-08-06 22:15:01 +02:00
patch -p1 -i $SRC/certs.patch
2018-03-15 13:34:12 +01: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 09:51:20 +01:00
}