Files
gentoo-zh/dev-python/telethon/telethon-1.45.0.ebuild
T
Yongxiang Liang 2aaa83c839 dev-python/telethon: new package, add 1.45.0
PyPI sdist 引用了未随 sdist 打包的 hatch_build.py,src_prepare 里摘除该空的自定义构建钩子。

Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
2026-10-25 03:11:58 +11:00

31 lines
700 B
Bash

# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{12..15} )
inherit distutils-r1 pypi
DESCRIPTION="Full-featured Telegram client library for Python"
HOMEPAGE="https://codeberg.org/Lonami/Telethon"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/pyaes[${PYTHON_USEDEP}]
dev-python/rsa[${PYTHON_USEDEP}]
"
# tests need a real Telegram account and network access
RESTRICT="test"
src_prepare() {
# the PyPI sdist omits hatch_build.py referenced by the custom build hook
sed -i '/\[tool.hatch.build.hooks.custom\]/d' pyproject.toml || die
distutils-r1_src_prepare
}