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>
This commit is contained in:
1 parent
adc0414fc4
commit
2aaa83c839
4 files changed
+48
No files matched your search
@@ -0,0 +1 @@
|
||||
DIST telethon-1.45.0.tar.gz 728057 BLAKE2B 857a9700f164cfdeac7383a8d7261e9f90f888d45a0ee7414b904b434908d0ce6f006d8ff15580b3c98c287d45870852e4f6f61cb74b92dfbf1ba993470ca5e8 SHA512 1cd9ed62915db6d2cf65c63e500a90e235549d699ff7b33a8ffc47eda206bb90bd53c2393cd2729f5a2196fdd74a68b565a2cb364a08cbd62dc94f4da90d00ca
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>tanekliang@gmail.com</email>
|
||||
<name>Yongxiang Liang</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">telethon</remote-id>
|
||||
<remote-id type="codeberg">Lonami/Telethon</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user