python-requests/PKGBUILD

48 lines
1.3 KiB
Bash
Raw Permalink Normal View History

2024-04-29 11:31:42 +08:00
# 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 <future_linux@163.com>
pkgname=python-requests
2024-11-04 14:28:25 +08:00
pkgver=2.32.3
2024-04-29 11:31:42 +08:00
pkgrel=1
pkgdesc="Python HTTP for Humans"
arch=('x86_64')
url="https://requests.readthedocs.io/"
2024-11-04 14:28:25 +08:00
license=('Apache-2.0')
depends=(
'ca-certificates'
'python-charset-normalizer'
'python-idna'
'python-urllib3'
)
makedepends=(
'git'
'python-build'
'python-installer'
'python-setuptools'
'python-wheel')
source=(https://github.com/psf/requests/archive/v${pkgver}/${pkgname#*-}-${pkgver}.tar.gz
${pkgname#*-}-${pkgver}-use_system_certs-1.patch)
sha256sums=(f665576fc02d02e7b7f21630b915d70c14288f48decf76fad89b16a9f3975c42
ec1c7a1aa466a6f8c0f51803879ee51451a015bd467ed85cbd506370b87f8936)
2024-04-29 11:31:42 +08:00
prepare() {
cd ${pkgname#*-}-${pkgver}
2024-11-04 14:28:25 +08:00
patch -Np1 -i ${srcdir}/${pkgname#*-}-${pkgver}-use_system_certs-1.patch
2024-04-29 11:31:42 +08:00
}
2024-11-04 14:28:25 +08:00
2024-04-29 11:31:42 +08:00
build() {
2024-11-04 14:28:25 +08:00
cd ${pkgname#*-}-${pkgver}
2024-04-29 11:31:42 +08:00
2024-11-04 14:28:25 +08:00
python3 -m build --wheel --no-isolation
2024-04-29 11:31:42 +08:00
}
package() {
2024-11-04 14:28:25 +08:00
cd ${pkgname#*-}-${pkgver}
2024-04-29 11:31:42 +08:00
2024-11-04 14:28:25 +08:00
python3 -m installer --destdir=${pkgdir} dist/*.whl
2024-04-29 11:31:42 +08:00
}