# This is an example PKGBUILD file. Use this as a start to creating your own, # and remove these comments. For more information, see 'man PKGBUILD'. # NOTE: Please fill out the license field for your package! If it is unknown, # then please put 'unknown'. # Maintainer: Future Linux Team pkgname=python-requests pkgver=2.31.0 pkgrel=1 pkgdesc="Python HTTP for Humans" arch=('x86_64') url="https://requests.readthedocs.io/" license=('Apache') depends=('python-charset-normalizer' 'python-idna' 'python-urllib3' 'ca-certificates') makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') source=(https://files.pythonhosted.org/packages/source/r/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz ${pkgname#*-}-${pkgver}-use_system_certs-1.patch) sha256sums=(942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1 ec8a2cc4f3f7a0df4ed5f576367017010276c59d57260ac7b0060238b2324904) prepare() { cd ${pkgname#*-}-${pkgver} patch -Np1 -i ${srcdir}/${pkgname#*-}-${pkgver}-use_system_certs-1.patch } build() { cd ${pkgname#*-}-${pkgver} python3 -m build --wheel --no-isolation } package() { cd ${pkgname#*-}-${pkgver} python3 -m installer --destdir=${pkgdir} dist/*.whl }