2013-08-25 08:11:05 +02:00
|
|
|
# Template file for 'python-requests'
|
|
|
|
pkgname=python-requests
|
2014-05-20 18:45:07 +02:00
|
|
|
version=2.3.0
|
2014-07-07 10:30:00 +02:00
|
|
|
revision=2
|
|
|
|
noarch=yes
|
|
|
|
wrksrc="requests-${version}"
|
2014-02-22 23:55:53 +01:00
|
|
|
build_style="python-module"
|
2014-07-07 10:30:00 +02:00
|
|
|
python_versions="2.7 3.4"
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
|
|
makedepends="python-devel python3.4-devel python-chardet python3.4-chardet
|
|
|
|
python-urllib3 python3.4-urllib3"
|
|
|
|
depends="python python-chardet python-urllib3 ca-certificates"
|
2014-01-01 16:10:11 +01:00
|
|
|
pycompile_module="requests"
|
2014-07-07 10:30:00 +02:00
|
|
|
short_desc="Python HTTP for Humans (Python2)"
|
2014-02-22 23:55:53 +01:00
|
|
|
maintainer="Steven R <dev@styez.com>"
|
2013-08-25 08:11:05 +02:00
|
|
|
homepage="http://docs.python-requests.org/en/latest/"
|
|
|
|
license="Apache-2.0"
|
2014-07-07 10:30:00 +02:00
|
|
|
distfiles="https://pypi.python.org/packages/source/r/requests/requests-${version}.tar.gz"
|
|
|
|
checksum=1c1473875d846fe563d70868acf05b1953a4472f4695b7b3566d1d978957b8fc
|
2014-02-22 23:55:53 +01:00
|
|
|
|
2014-07-07 10:30:00 +02:00
|
|
|
pre_build() {
|
|
|
|
rm -rf requests.egg-info
|
|
|
|
}
|
|
|
|
|
|
|
|
python3.4-requests_package() {
|
|
|
|
noarch=yes
|
|
|
|
depends="python3.4 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
|
|
|
|
}
|
|
|
|
}
|