Name: python-telethon Version: 1.45.0 Release: 1%{?dist} Summary: Full-featured Telegram client library for Python License: MIT URL: https://codeberg.org/Lonami/Telethon Source0: %{url}/archive/v%{version}.tar.gz#/telethon-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-pytest-asyncio %global _description %{expand: Telethon is an asyncio Python library for Telegram's MTProto API. It works as a user or a bot account, and covers the whole API: messages, media, channels, contacts and account settings. The API classes are generated at build time from Telegram's TL schema, which ships with the source.} %description %{_description} %package -n python3-telethon Summary: %{summary} # Optional speed-ups that Fedora does not ship: cryptg (AES in C) and # hachoir (media metadata). Pillow is used, when present, for photos. Recommends: python3-pillow Suggests: python3-pysocks %description -n python3-telethon %{_description} %prep %autosetup -n telethon %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l telethon %check %pyproject_check_import # The source tree's telethon/ lacks the generated API classes; test the # installed copy. tests/readthedocs checks the Sphinx docs. mv telethon telethon.src %pytest tests/telethon mv telethon.src telethon %files -n python3-telethon -f %{pyproject_files} %doc README.rst %changelog * Fri Oct 30 2026 Morgan Hough - 1.45.0-1 - Initial package