summaryrefslogtreecommitdiff
path: root/python3-requests/Pkgfile
blob: ff4206537fdf79911e9458e5edd14452101fb298 (plain)
    1 # Description: Python HTTP for Humans.
    2 # URL: http://python-requests.org/
    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.27.1
    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 }

Generated by cgit