dev-python/google-auth-httplib2: add package

Package-Manager: Portage-2.3.5, Repoman-2.3.2
This commit is contained in:
Zac Medico
2017-05-03 20:43:39 -07:00
parent af4cd2e469
commit 069a239018
3 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST google-auth-httplib2-0.0.2.tar.gz 10830 SHA256 56ad472d166aeddab10fbf6b6a39848c959379e12b9cbcb5ccf2530eda61b4de SHA512 ec111fdad930bfe3f8f97df70a8bef955920ab2cb0c383d7888ff444f19e5c176dd5aabe10f9a870c86035791a2b27e3e8e1276360626ff5e430db823da5efb0 WHIRLPOOL 8bf72785a168905a6d1a5d6f2ec093d54e93799f09c0e0f5e53bb0de96c200a8638ac68bc393cd0b4dce4cca4b6299a202086d943dec917ee8733aa792869a99

View File

@@ -0,0 +1,39 @@
# 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
EGIT_COMMIT="607e86011141e8885b1f52826d57c8b5ff588ffc"
MY_PN=google-auth-library-python-httplib2
DESCRIPTION="httplib2 Transport for Google Auth"
HOMEPAGE="https://pypi.python.org/pypi/google-auth-httplib2 https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2"
# PyPi tarball is missing unit tests
#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
SRC_URI="https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND="
dev-python/httplib2[${PYTHON_USEDEP}]
dev-python/google-auth[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}
test? (
dev-python/flask[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/pytest-localserver[${PYTHON_USEDEP}]
)"
S=${WORKDIR}/${MY_PN}-${EGIT_COMMIT}
python_test() {
py.test -v || die "Tests failed under ${EPYTHON}"
}

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>zmedico@gentoo.org</email>
<name>Zac Medico</name>
</maintainer>
<upstream>
<remote-id type="pypi">google-auth-httplib2</remote-id>
<remote-id type="github">GoogleCloudPlatform/google-auth-library-python-httplib2</remote-id>
</upstream>
</pkgmetadata>