2016-01-10 22:28:26 +00:00
|
|
|
# Template file for 'python-oauth2client'
|
|
|
|
pkgname=python-oauth2client
|
2016-10-23 09:06:40 +00:00
|
|
|
version=4.0.0
|
|
|
|
revision=1
|
2016-01-10 22:28:26 +00:00
|
|
|
noarch=yes
|
|
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
pycompile_module="oauth2client"
|
2016-10-17 08:51:07 +00:00
|
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
2016-01-10 22:28:26 +00:00
|
|
|
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"
|
2016-10-23 09:06:40 +00:00
|
|
|
checksum=80be5420889694634b8517b4acd3292ace881d9d1aa9d590d37ec52faec238c7
|
2016-01-10 22:28:26 +00:00
|
|
|
|
2016-10-17 08:51:07 +00:00
|
|
|
python3-oauth2client_package() {
|
2016-01-10 22:28:26 +00:00
|
|
|
noarch=yes
|
2016-10-17 08:51:07 +00:00
|
|
|
depends="python3-httplib2 python3-pyasn1 python3-pyasn1-modules
|
|
|
|
python3-rsa python3-six"
|
2016-01-10 22:28:26 +00:00
|
|
|
pycompile_module="oauth2client"
|
2016-10-17 08:51:07 +00:00
|
|
|
replaces="python3.4-oauth2client>=0"
|
|
|
|
short_desc="${short_desc/Python2/Python3}"
|
2016-01-10 22:28:26 +00:00
|
|
|
pkg_install() {
|
2016-10-17 08:51:07 +00:00
|
|
|
vmove usr/lib/python3*
|
2016-01-10 22:28:26 +00:00
|
|
|
}
|
|
|
|
}
|
2016-10-17 08:51:07 +00:00
|
|
|
python3.4-oauth2client_package() {
|
|
|
|
noarch=yes
|
|
|
|
build_style=meta
|
|
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
|
|
depends="python3-oauth2client>=${version}_${revision}"
|
|
|
|
}
|