void-packages/srcpkgs/python-requests/template

38 lines
1.1 KiB
Bash

# Template file for 'python-requests'
pkgname=python-requests
version=2.18.1
revision=1
noarch=yes
wrksrc="requests-${version}"
build_style=python-module
pycompile_module="requests"
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>"
homepage="http://python-requests.org/"
license="Apache-2.0"
distfiles="${PYPI_SITE}/r/requests/requests-${version}.tar.gz"
checksum=c6f3bdf4a4323ac7b45d01e04a6f6c20e32a052cd04de81e05103abc049ad9b9
pre_build() {
sed -i '/certifi/d' setup.py
}
python3-requests_package() {
noarch=yes
pycompile_module="requests"
replaces="python3.4-requests>=0"
depends="ca-certificates python3-chardet python3-urllib3 python3-idna"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}
python3.4-requests_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-requests>=${version}_${revision}"
}