21 lines
536 B
Plaintext
21 lines
536 B
Plaintext
# Description: Python HTTP for Humans.
|
|
# URL: http://python-requests.org/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: python3-chardet python3-urllib3
|
|
|
|
name=python3-requests
|
|
version=2.23.0
|
|
release=1
|
|
source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz
|
|
certs.patch)
|
|
|
|
build() {
|
|
cd ${name#*-}-$version
|
|
|
|
sed -e '/certifi/d' -i setup.py
|
|
patch -p1 -i $SRC/certs.patch
|
|
|
|
/usr/bin/python3 setup.py build
|
|
/usr/bin/python3 setup.py install --prefix=/usr --root=$PKG
|
|
}
|