%global pypi_name hexbytes Name: python-%{pypi_name} Version: 1.2.1 Release: %autorelease BuildArch: noarch Summary: Python `bytes` subclass that decodes hex, with a readable console output License: MIT URL: https://github.com/ethereum/hexbytes VCS: git:%{url}.git Source0: %{pypi_source %pypi_name} BuildRequires: python3-devel BuildRequires: python3-pytest %description %{summary}. %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{summary}. %prep %autosetup -p1 -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{pypi_name} %check # Warning - there is a circular dependency ( hexbytes <-> eth_utils) so we need # to bootstrap hexbytes w/o tests, then build eth_utils with tests, then build # hexbytes again with tests. #%%pyproject_check_import #%%pytest %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md %changelog %autochangelog