2017-02-04 19:51:20 +11:00
|
|
|
# Description: Python HTTP for Humans.
|
|
|
|
# URL: http://python-requests.org/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2020-03-05 19:26:44 +11:00
|
|
|
# Depends on: python3-chardet python3-urllib3
|
2017-02-04 19:51:20 +11:00
|
|
|
|
|
|
|
name=python3-requests
|
2020-07-08 21:11:16 +10:00
|
|
|
version=2.24.0
|
2018-06-22 23:52:28 +10: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
|
|
|
|
certs.patch)
|
2017-02-04 19:51:20 +11:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${name#*-}-$version
|
2018-03-15 23:34:12 +11:00
|
|
|
|
|
|
|
sed -e '/certifi/d' -i setup.py
|
|
|
|
patch -p1 -i $SRC/certs.patch
|
|
|
|
|
2017-02-04 19:51:20 +11:00
|
|
|
/usr/bin/python3 setup.py build
|
|
|
|
/usr/bin/python3 setup.py install --prefix=/usr --root=$PKG
|
|
|
|
}
|