void-packages/srcpkgs/python-requests/template

30 lines
906 B
Bash

# Template file for 'python-requests'
pkgname=python-requests
version=2.23.0
revision=1
archs=noarch
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=b3f43d496c6daba4493e7c431722aeb7dbc6288f52a6e04e7b6023b0247817e6
pre_build() {
vsed -i '/certifi/d' setup.py
}
python3-requests_package() {
archs=noarch
depends="ca-certificates python3-chardet python3-urllib3 python3-idna"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}