HomeAssistantRepository/dev-python/google-api-core/google-api-core-1.23.0.ebuild
Andreas Billmeier (@Home/mbp) 98feb557ef
add google-nest-sdm-0.1.6
update google-nest-sdm-0.1.9
add google-api-core-1.23.0
add google-auth-1.22.0
update google-auth-1.22.1
add grpc-google-iam-v1-0.12.3
add google-cloud-pubsub-2.1.0
add libcst-0.3.13
add proto-plus-1.11.0
2020-10-25 08:58:13 +01:00

47 lines
1.2 KiB
Bash

# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6..9} )
inherit distutils-r1
DESCRIPTION="Core Library for Google Client Libraries"
HOMEPAGE="https://github.com/googleapis/python-api-core
https://googleapis.dev/python/google-api-core/latest"
SRC_URI="https://github.com/googleapis/${PN//google/python}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${P//google/python}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 x86"
RDEPEND="
dev-python/namespace-google[${PYTHON_USEDEP}]
dev-python/protobuf-python[${PYTHON_USEDEP}]
dev-python/googleapis-common-protos[${PYTHON_USEDEP}]
>=dev-python/google-auth-1.14.0[${PYTHON_USEDEP}]
>=dev-python/requests-2.18.0[${PYTHON_USEDEP}]
<dev-python/requests-3[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
dev-python/pytz[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/grpcio[${PYTHON_USEDEP}]
dev-python/rsa[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_test() {
distutils_install_for_testing
pytest -vv || die "tests fail with ${EPYTHON}"
}
python_install_all() {
distutils-r1_python_install_all
find "${D}" -name '*.pth' -delete || die
}