Files
ports/core/python3-requests/spkgbuild
2020-06-27 22:08:15 +08:00

19 lines
461 B
Plaintext

# description : Python HTTP for Humans
# depends : python3-chardet python3-idna python3-urllib3 python3-setuptools
name=python3-requests
version=2.24.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
python3 setup.py build
python3 setup.py install --prefix=/usr --root=$PKG
}