36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
# Template file for 'python-requests'
|
|
pkgname=python-requests
|
|
version=2.5.0
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="requests-${version}"
|
|
build_style="python-module"
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="
|
|
python-setuptools python3.4-setuptools python-chardet python3.4-chardet
|
|
python-urllib3 python3.4-urllib3"
|
|
makedepends="${hostmakedepends}"
|
|
depends="python-chardet python-urllib3 ca-certificates"
|
|
pycompile_module="requests"
|
|
short_desc="Python HTTP for Humans (Python2)"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="http://docs.python-requests.org/en/latest/"
|
|
license="Apache-2.0"
|
|
distfiles="${PYPI_SITE}/r/requests/requests-${version}.tar.gz"
|
|
checksum=d2daef4919fc87262b8b3cb5a9d214cac8ce1e50950f8423bbc1d31c2e63d38e
|
|
|
|
pre_build() {
|
|
rm -rf requests.egg-info
|
|
}
|
|
|
|
python3.4-requests_package() {
|
|
noarch=yes
|
|
depends="python3.4-chardet python3.4-urllib3 ca-certificates"
|
|
pycompile_version="3.4"
|
|
pycompile_module="requests"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3.4
|
|
}
|
|
}
|