Name: telegram-phone-number-checker Version: 1.2.2 Release: 1%{?dist} Summary: Check whether phone numbers are connected to Telegram accounts License: MIT URL: https://github.com/bellingcat/telegram-phone-number-checker Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-pysocks # For -p/--proxy. Recommends: python3-pysocks %description telegram-phone-number-checker, from Bellingcat, logs in to Telegram with your own account and API credentials and reports, for each phone number given, whether it belongs to a Telegram account and, if so, the account's ID, username, name and last-seen status. It is used to verify identities in open-source investigations. %prep %autosetup -p1 # The code imports only click, python-dotenv, telethon and (for proxies) # PySocks; the rest of upstream's list is pinned transitive dependencies. sed -i '/^\[tool.poetry.dependencies\]/,/^$/{/^\(python\|click\|python-dotenv\|telethon\|PySocks\) /!{/^\[/!{/^$/!d}}; s/= "[~^][^"]*"/= "*"/; s/version = "[~^][^"]*"/version = "*"/}' pyproject.toml %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # f43's poetry-core does not record License-File (PEP 639). %pyproject_save_files -L telegram_phone_number_checker %check %pyproject_check_import %{py3_test_envvars} %{buildroot}%{_bindir}/telegram-phone-number-checker --help >/dev/null %pytest %files -f %{pyproject_files} %license LICENSE %doc README.md %{_bindir}/telegram-phone-number-checker %changelog * Fri Oct 30 2026 Morgan Hough - 1.2.2-1 - Initial package