# Template file for 'python-requests'
pkgname=python-requests
version=2.3.0
revision=2
noarch=yes
wrksrc="requests-${version}"
build_style="python-module"
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"
pycompile_module="requests"
short_desc="Python HTTP for Humans (Python2)"
maintainer="Steven R <dev@styez.com>"
homepage="http://docs.python-requests.org/en/latest/"
license="Apache-2.0"
distfiles="https://pypi.python.org/packages/source/r/requests/requests-${version}.tar.gz"
checksum=1c1473875d846fe563d70868acf05b1953a4472f4695b7b3566d1d978957b8fc

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
	}
}
