HomeAssistantRepository/dev-python/gassist-text/gassist-text-0.0.10.ebuild
Stef Simoens e96ba4b2fb 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:08:49 +01:00

42 lines
1000 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN=${PN/-/_}
MY_P=${MY_PN}-${PV}
PYTHON_COMPAT=( python3_{11..12} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
DESCRIPTION="A Python library for interacting with Google Assistant API via text"
HOMEPAGE="https://github.com/tronikos/gassist_text https://pypi.org/project/gassist-text/"
SRC_URI="https://github.com/tronikos/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
DOCS="README.md"
BDEPEND="
dev-python/google-auth[${PYTHON_USEDEP}]
dev-python/grpcio[${PYTHON_USEDEP}]
dev-python/protobuf[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
"
S="${WORKDIR}/${MY_P}"
distutils_enable_tests pytest
src_configure() {
cat > pyproject.toml <<-EOF || die
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
EOF
}