11bd8f
Name:           python-cachetools
11bd8f
Version:        5.4.0
11bd8f
Release:        %autorelease
11bd8f
Summary:        Extensible memoizing collections and decorators
11bd8f
11bd8f
# SPDX
11bd8f
License:        MIT
11bd8f
URL:            https://pypi.python.org/pypi/cachetools
11bd8f
Source:         %{pypi_source cachetools}
11bd8f
11bd8f
BuildArch:      noarch
11bd8f
BuildRequires:  python3-devel
11bd8f
11bd8f
# cachetools is a direct runtime dependency of tox,
11bd8f
# so we don't use tox to generate test dependencies or run tests
11bd8f
BuildRequires:  python3-pytest
11bd8f
11bd8f
%global _description\
11bd8f
This module provides various memoizing collections and decorators,\
11bd8f
including a variant of the Python 3 Standard Library @lru_cache\
11bd8f
function decorator.\
11bd8f
\
11bd8f
This module provides multiple cache implementations based on different\
11bd8f
cache algorithms, as well as decorators for easily memoizing function\
11bd8f
and method calls.\
11bd8f
11bd8f
11bd8f
%description %_description
11bd8f
11bd8f
%package -n python3-cachetools
11bd8f
Summary:        %{summary}
11bd8f
11bd8f
%description -n python3-cachetools %_description
11bd8f
11bd8f
%prep
11bd8f
%autosetup -n cachetools-%{version}
11bd8f
11bd8f
%generate_buildrequires
11bd8f
%pyproject_buildrequires
11bd8f
11bd8f
%build
11bd8f
%pyproject_wheel
11bd8f
11bd8f
%install
11bd8f
%pyproject_install
11bd8f
%pyproject_save_files -l cachetools
11bd8f
11bd8f
%check
11bd8f
%pytest
11bd8f
11bd8f
%files -n python3-cachetools -f %{pyproject_files}
11bd8f
%doc CHANGELOG.rst README.rst
11bd8f
11bd8f
%changelog
11bd8f
%autochangelog