From 20fdd61da46ee17d0d9a450abebd1c977a28c5d6 Mon Sep 17 00:00:00 2001 From: "Anna (cybertailor) Vyalkova" Date: Tue, 5 Aug 2025 12:12:38 +0500 Subject: [PATCH] dev-python/tulir-telethon: add 1.99.0_alpha6, drop old Signed-off-by: Anna (cybertailor) Vyalkova --- dev-python/tulir-telethon/Manifest | 2 +- .../tulir-telethon-1.35.0_alpha1.ebuild | 29 ------------ .../tulir-telethon-1.99.0_alpha6.ebuild | 46 +++++++++++++++++++ 3 files changed, 47 insertions(+), 30 deletions(-) delete mode 100644 dev-python/tulir-telethon/tulir-telethon-1.35.0_alpha1.ebuild create mode 100644 dev-python/tulir-telethon/tulir-telethon-1.99.0_alpha6.ebuild diff --git a/dev-python/tulir-telethon/Manifest b/dev-python/tulir-telethon/Manifest index f93a6b4a66..6c9fbf6ff4 100644 --- a/dev-python/tulir-telethon/Manifest +++ b/dev-python/tulir-telethon/Manifest @@ -1,2 +1,2 @@ -DIST tulir-telethon-1.35.0a1.tar.gz 590359 BLAKE2B e145d6c89f7c465c308994c3646fcdd2e99941c37b3ba0be170f8784b0d8e18b5b513fad9b52e8d706532e359649d3368759f6d4676438c200882902a8a5be83 SHA512 17199aea16ede2051583cac857bac65b23301273f64e157c29acca142c7fe4bb9d3ea8d147c121a095b7a30c0bb92eab83aee3946093168ca5096fa84c9d4167 DIST tulir-telethon-1.37.0_alpha1.gh.tar.gz 504857 BLAKE2B ce9bedc0ef7c6b1673ce62aa9f298c92d11aba5d0ea59eb47ab48b0529e9e8e60c9b86c0bdea2dfc9052a0458c7d8129d7a8f1f75e6bf16df45381177b04b4f8 SHA512 db704622d58677c4b7470850ad37129c227487caa3cf34d60a5fa81f91306a46f943bcecbbe8ca045c7f47c780b917ada3e9a1860aa82c99751a131fc847b15a +DIST tulir-telethon-1.99.0_alpha6.gh.tar.gz 513983 BLAKE2B b3b23b5f0a67c9428791b9d48f3fe31d26d1ac57dab3cca421cb99d41d2ffaf26b966f534142f5be70ff9019e46c9150eb133ee97ce87542227754d7007f886b SHA512 4ee9fb57ddd55559353e05ba55f6ba613ed7c36d329611a9b3c7d4a51e21a2a2ac99c257ee9045574bb33e8e9f0411da3b67ab6a25323f22c55809fa73e15b07 diff --git a/dev-python/tulir-telethon/tulir-telethon-1.35.0_alpha1.ebuild b/dev-python/tulir-telethon/tulir-telethon-1.35.0_alpha1.ebuild deleted file mode 100644 index 73e9a6569c..0000000000 --- a/dev-python/tulir-telethon/tulir-telethon-1.35.0_alpha1.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 2022-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYPI_NO_NORMALIZE=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{11..12} ) - -inherit distutils-r1 pypi - -MY_PV="${PV/_alph/}" -DESCRIPTION="Pure Python 3 MTProto API Telegram client library, for bots too!" -HOMEPAGE="https://github.com/tulir/Telethon/" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - dev-python/cryptg[${PYTHON_USEDEP}] - dev-python/hachoir[${PYTHON_USEDEP}] - dev-python/pillow[${PYTHON_USEDEP}] - dev-python/pyaes[${PYTHON_USEDEP}] - dev-python/pysocks[${PYTHON_USEDEP}] - dev-python/python-socks[${PYTHON_USEDEP}] - dev-python/rsa[${PYTHON_USEDEP}] -" -DEPEND="${RDEPEND}" diff --git a/dev-python/tulir-telethon/tulir-telethon-1.99.0_alpha6.ebuild b/dev-python/tulir-telethon/tulir-telethon-1.99.0_alpha6.ebuild new file mode 100644 index 0000000000..e325b438eb --- /dev/null +++ b/dev-python/tulir-telethon/tulir-telethon-1.99.0_alpha6.ebuild @@ -0,0 +1,46 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYPI_NO_NORMALIZE=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..13} ) + +inherit distutils-r1 pypi + +MY_PN="Telethon" +MY_PV="${PV/_alph/}" +DESCRIPTION="Full-featured Telegram client library for Python 3" +HOMEPAGE=" + https://pypi.org/project/tulir-telethon/ + https://github.com/tulir/Telethon/ +" +SRC_URI="https://github.com/tulir/${MY_PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz" +S="${WORKDIR}/${MY_PN}-${MY_PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/cryptg[${PYTHON_USEDEP}] + dev-python/hachoir[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pyaes[${PYTHON_USEDEP}] + dev-python/pysocks[${PYTHON_USEDEP}] + dev-python/python-socks[${PYTHON_USEDEP}] + dev-python/rsa[${PYTHON_USEDEP}] +" + +EPYTEST_PLUGINS=( pytest-asyncio ) +EPYTEST_DESELECT=( + # incompatible with recent pytest-asyncio changes + tests/telethon/test_helpers.py::TestSyncifyAsyncContext +) + +distutils_enable_tests pytest + +python_test() { + epytest tests/telethon +}