Blob Blame History Raw
%global pypi_name zope.hookable

Name:           python-zope-hookable
Version:        5.1.0
Release:        4%{?dist}
Summary:        Efficient creation of hookable objects

License:        ZPL-2.1
Source0:        %{pypi_source %{pypi_name}}

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}
%description %{_description}

%package -n python3-zope-hookable
Summary:        %{summary}

%description -n python3-zope-hookable %{_description}

%autosetup -p1 -n %{pypi_name}-%{version}

%if 0%{?rhel} > 8 || 0%{?fedora}






%pytest --pyargs %{pypi_name}

%files -n python3-zope-hookable
%license LICENSE.txt
%doc README.rst CHANGES.rst
%exclude %{python3_sitearch}/zope/hookable/tests

* Fri Jan 20 2023 Fedora Release Engineering <> - 5.1.0-4
- Rebuilt for

* Wed Aug 10 2022 Jonathan Wright <> - 5.1.0-3
- Minor spec improvements

* Wed Aug 10 2022 Jonathan Wright <> - 5.1.0-2
- Update spec to build on epel8

* Tue Aug 09 2022 Jonathan Wright <> - 5.1.0-1
- Initial package build
- Fixes rhbz#2090769