blob: a17963c2929473fceefe4a38ac21a0f4f0c3b5fa (
plain)
1 # Description: Python HTTP for Humans
2 # URL: https://pypi.org/project/requests/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: python3-chardet python3-idna python3-urllib3
5
6 name=python3-requests
7 version=2.28.2
8 release=1
9 source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz
10 certs.patch)
11
12 build() {
13 cd ${name#*-}-$version
14
15 # Stay with chardet for now: https://github.com/psf/requests/issues/5871
16
17 sed \
18 -e '/certifi/d' \
19 -e "s/,<.*'/'/" \
20 -e '/charset_normalizer/d' \
21 -i setup.py
22
23 patch -p1 -i $SRC/certs.patch
24
25 /usr/bin/python3 setup.py build
26 /usr/bin/python3 setup.py install --prefix=/usr --root=$PKG
27 }
|