diff --git a/.github/workflows/overlay.toml b/.github/workflows/overlay.toml index dd498d0f90..b0c5f5e8a1 100644 --- a/.github/workflows/overlay.toml +++ b/.github/workflows/overlay.toml @@ -1242,6 +1242,11 @@ source = "pypi" pypi = "simplesat" github_account = "f3rmata" +["dev-python/telethon"] +source = "pypi" +pypi = "Telethon" +github_account = ["liangyongxiang"] + ["dev-python/uv-bin"] source = "github" github = "astral-sh/uv" diff --git a/dev-python/telethon/Manifest b/dev-python/telethon/Manifest new file mode 100644 index 0000000000..341ac66a78 --- /dev/null +++ b/dev-python/telethon/Manifest @@ -0,0 +1 @@ +DIST telethon-1.45.0.tar.gz 728057 BLAKE2B 857a9700f164cfdeac7383a8d7261e9f90f888d45a0ee7414b904b434908d0ce6f006d8ff15580b3c98c287d45870852e4f6f61cb74b92dfbf1ba993470ca5e8 SHA512 1cd9ed62915db6d2cf65c63e500a90e235549d699ff7b33a8ffc47eda206bb90bd53c2393cd2729f5a2196fdd74a68b565a2cb364a08cbd62dc94f4da90d00ca diff --git a/dev-python/telethon/metadata.xml b/dev-python/telethon/metadata.xml new file mode 100644 index 0000000000..9bb6831a17 --- /dev/null +++ b/dev-python/telethon/metadata.xml @@ -0,0 +1,12 @@ + + + + + tanekliang@gmail.com + Yongxiang Liang + + + telethon + Lonami/Telethon + + diff --git a/dev-python/telethon/telethon-1.45.0.ebuild b/dev-python/telethon/telethon-1.45.0.ebuild new file mode 100644 index 0000000000..ed3e9b5020 --- /dev/null +++ b/dev-python/telethon/telethon-1.45.0.ebuild @@ -0,0 +1,30 @@ +# 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 +}