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

EAPI=8

PYTHON_COMPAT=( python3_{11..14} )
DISTUTILS_USE_PEP517=setuptools

inherit pypi distutils-r1

# PyPI dist name is edge-tts, sdist name uses an underscore.
PYPI_P="edge_tts-${PV}"

DESCRIPTION="Microsoft Edge Text-to-Speech client"
HOMEPAGE="https://github.com/rany2/edge-tts https://pypi.org/project/edge-tts/"
S="${WORKDIR}/${PYPI_P}"

# LGPLv3 overall; srt_composer.py is MIT (per LICENSE).
LICENSE="LGPL-3 MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RESTRICT="test"

RDEPEND="
	dev-python/aiohttp[${PYTHON_USEDEP}]
	dev-python/certifi[${PYTHON_USEDEP}]
	dev-python/tabulate[${PYTHON_USEDEP}]
	dev-python/typing-extensions[${PYTHON_USEDEP}]
"