diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2017-08-15 16:27:46 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2017-08-15 16:35:28 -0700 |
commit | 42d27f0e8f26018c3c6962580bd4edfe50f557d8 (patch) | |
tree | 895294eec059e705e8633e22cecf8835cd1720ec /dev-python/oauth2client/oauth2client-4.1.2.ebuild | |
parent | dev-python/keyring: disable interactive test (diff) | |
download | gentoo-42d27f0e8f26018c3c6962580bd4edfe50f557d8.tar.gz gentoo-42d27f0e8f26018c3c6962580bd4edfe50f557d8.tar.bz2 gentoo-42d27f0e8f26018c3c6962580bd4edfe50f557d8.zip |
dev-python/oauth2client: bump, based on patch in bug 626390.
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'dev-python/oauth2client/oauth2client-4.1.2.ebuild')
-rw-r--r-- | dev-python/oauth2client/oauth2client-4.1.2.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/oauth2client/oauth2client-4.1.2.ebuild b/dev-python/oauth2client/oauth2client-4.1.2.ebuild new file mode 100644 index 000000000000..fb86986d3712 --- /dev/null +++ b/dev-python/oauth2client/oauth2client-4.1.2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Library for accessing resources protected by OAuth 2.0" +HOMEPAGE="https://github.com/google/oauth2client" +SRC_URI="https://github.com/google/oauth2client/archive/v${PV/_p/-post}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" +REQUIRED_USE="|| ( $(python_gen_useflags 'python*') )" + +RDEPEND=" + >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}] + >=dev-python/pyasn1-0.1.7[${PYTHON_USEDEP}] + >=dev-python/pyasn1-modules-0.0.5[${PYTHON_USEDEP}] + >=dev-python/rsa-3.1.4[${PYTHON_USEDEP}] + >=dev-python/six-1.6.1[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/keyring[${PYTHON_USEDEP}]' 'python*') + !<=dev-python/google-api-python-client-1.1[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/nose[${PYTHON_USEDEP}] ) +" + +S="${WORKDIR}"/${P/_p/-post} + +python_prepare() { + # keyring is not fuly supported by pypy yet, because dbus-python can't support pypy + # oauth2client -> keyring -> secretstorage -> dbus-python + # https://github.com/mitya57/secretstorage/issues/10 + case $PYTHON in + pypy|*pypy|*pypy3|pypy3) \ + find "${BUILD_DIR}/.." -name '*keyring*py' -delete ;; + esac +} + +python_test() { + nosetests -e appengine -e django_util -e test_multiprocess_file_storage -e test_bad_positional || die + # appengine - requires appengine + # django_util - requires django + # test_multiprocess_file_storage - requires fasteners + # test_bad_positional - expects TypeError, gets ValueError +} |