# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..15} )

inherit distutils-r1 pypi

DESCRIPTION="Library to use Microsoft Edge's TTS service without Microsoft/Edge/API key"
HOMEPAGE="
	https://github.com/rany2/edge-tts/
	https://pypi.org/project/edge-tts/
"
SRC_URI="https://github.com/rany2/edge-tts/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"

S=${WORKDIR}/${P}

LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	>=dev-python/aiohttp-3.8.0[${PYTHON_USEDEP}]
	<dev-python/aiohttp-4.0.0[${PYTHON_USEDEP}]
	>=dev-python/certifi-2023.11.17[${PYTHON_USEDEP}]
	>=dev-python/tabulate-0.4.4[${PYTHON_USEDEP}]
	<dev-python/tabulate-1.0.0[${PYTHON_USEDEP}]
	>=dev-python/typing-extensions-4.1.0[${PYTHON_USEDEP}]
	<dev-python/typing-extensions-5.0.0[${PYTHON_USEDEP}]
"

DOCS=( README.md )