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