# Template file for 'python-oauth2client'
pkgname=python-oauth2client
version=4.1.2
revision=2
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
pycompile_module="oauth2client"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-httplib2 python-pyasn1 python-pyasn1-modules python-rsa python-six"
short_desc="Python2 OAuth 2.0 client library"
maintainer="Peter Bui <pnutzh4x0r@gmail.com>"
license="Apache-2.0"
homepage="https://github.com/google/oauth2client/"
distfiles="${PYPI_SITE}/o/oauth2client/oauth2client-${version}.tar.gz"
checksum=bd3062c06f8b10c6ef7a890b22c2740e5f87d61b6e1f4b1c90d069cdfc9dadb5

python3-oauth2client_package() {
	noarch=yes
	depends="python3-httplib2 python3-pyasn1 python3-pyasn1-modules
	 python3-rsa python3-six"
	pycompile_module="oauth2client"
	replaces="python3.4-oauth2client>=0"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
	}
}
python3.4-oauth2client_package() {
	noarch=yes
	build_style=meta
	short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
	depends="python3-oauth2client>=${version}_${revision}"
}
