%global pypi_name electrum_aionostr Name: python-electrum-aionostr Version: 0.1.0 Release: 1%{?dist} Summary: asyncio nostr client License: MIT URL: https://pypi.org/project/electrum-aionostr/ Source0: %pypi_source BuildArch: noarch Patch0: remove-broken-import.patch %global _description %{expand: This package provides an asyncio nostr client. This is a fork of aionostr that does not require Coincurve.} %description %{_description} %package -n python3-electrum-aionostr Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools # These are not picked up automatically and import_all_modules fails during # build without them. BuildRequires: %{py3_dist cryptography} BuildRequires: %{py3_dist click} %description -n python3-electrum-aionostr %{_description} %prep %autosetup -n %{pypi_name}-%{version} -p0 # Remove bundled egg-info rm -fr src/electrum_aionostr.egg-info %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{pypi_name} %check %pyproject_check_import %files -n python3-electrum-aionostr -f %{pyproject_files} %license LICENSE %doc README.md %{_bindir}/aionostr %changelog %autochangelog