HomeAssistantRepository/dev-python/google-generativeai/google-generativeai-0.3.1.ebuild
Stef Simoens 4b9aca415f jinja2 / protobuf Gentoo Package Update 4Q-2024
sed -i 's!dev-python/jinja!dev-python/jinja2!'
sed -i 's!dev-python/protobuf-python!dev-python/protobuf!'

Fixes #4117

Signed-off-by: Stef Simoens <stef.github@bisse.be>
2025-01-07 20:45:26 +01:00

40 lines
1.0 KiB
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..13} )
DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
inherit distutils-r1
DESCRIPTION="Google Generative AI High level API client library and tools."
HOMEPAGE="https://github.com/google/generative-ai-python https://pypi.org/project/google-generativeai/"
MY_PN="generative-ai-python"
SRC_URI="https://github.com/google/generative-ai-python/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
S=${WORKDIR}/${MY_PN}-${PV}
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
DOCS="README.md"
RDEPEND="~dev-python/google-ai-generativelanguage-0.4.0[${PYTHON_USEDEP}]
dev-python/google-auth[${PYTHON_USEDEP}]
dev-python/google-api-core[${PYTHON_USEDEP}]
dev-python/protobuf[${PYTHON_USEDEP}]
dev-python/tqdm[${PYTHON_USEDEP}]"
BDEPEND="
test? (
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
py.test -v -v || die
}
distutils_enable_tests pytest