%global pypi_name zope.hookable Name: python-zope-hookable Version: 5.1.0 Release: 1%{?dist} Summary: Efficient creation of hookable objects License: ZPL-2.1 URL: https://pypi.python.org/pypi/%{pypi_name} Source0: %{pypi_source} BuildRequires: gcc BuildRequires: python3-devel BuildRequires: python3-pytest %global _description %{expand: This package supports the efficient creation of “hookable” objects, which are callable objects that are meant to be optionally replaced. The idea is that you create a function that does some default thing and make it hookable. Later, someone can modify what it does by calling its sethook method and changing its implementation. All users of the function, including those that imported it, will see the change. Documentation is hosted at https://zopehookable.readthedocs.io} %description %{_description} %package -n python3-zope-hookable Summary: Efficient creation of hookable objects %description -n python3-zope-hookable %{_description} %prep %autosetup -p1 -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %check %pytest --pyargs -k "not test_pure_python" %{buildroot}/%{python3_sitearch}/zope/hookable %files -n python3-zope-hookable %license LICENSE.txt %doc README.rst CHANGES.rst %{python3_sitearch}/zope/hookable/ %{python3_sitearch}/%{pypi_name}-%{version}.dist-info/ %{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}-nspkg.pth %exclude %{python3_sitearch}/zope/hookable/tests %changelog * Tue Aug 09 2022 Jonathan Wright - 5.1.0-1 - Initial package build - Fixes rhbz#2090769