void-packages/srcpkgs/python-requests/template

28 lines
879 B
Bash

# Template file for 'python-requests'
pkgname=python-requests
version=2.24.0
revision=1
wrksrc="requests-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="ca-certificates python-chardet python-urllib3 python-idna"
short_desc="Python2 HTTP library for human beings"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="Apache-2.0"
homepage="https://python-requests.org/"
changelog="https://raw.githubusercontent.com/psf/requests/master/HISTORY.md"
distfiles="${PYPI_SITE}/r/requests/requests-${version}.tar.gz"
checksum=b3559a131db72c33ee969480840fff4bb6dd111de7dd27c8ee1f820f4f00231b
pre_build() {
vsed -i '/certifi/d' setup.py
}
python3-requests_package() {
depends="ca-certificates python3-chardet python3-urllib3 python3-idna"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}