Name: python-hishel Version: 0.1.3 Release: %autorelease Summary: Persistent cache implementation for httpx and httpcore License: BSD-3-Clause URL: https://hishel.com VCS: git:https://github.com/karpetrosyan/hishel.git Source: https://github.com/karpetrosyan/hishel/archive/%{version}/hishel-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel # Tests BuildRequires: python3dist(anyio) BuildRequires: python3dist(pytest) BuildRequires: python3dist(trio) BuildRequires: python3dist(zipp) %global _description %{expand: A library that implements HTTP Caching for HTTPX and HTTP Core libraries in accordance with RFC 9111, the most recent caching specification.} %description %_description %package -n python3-hishel Summary: %{summary} %description -n python3-hishel %_description # python-anysqlite is not packaged, needed for sqlite subpackage %pyproject_extras_subpkg -n python3-hishel redis,s3,yaml %prep %autosetup -p1 -n hishel-%{version} # Relax version requirements sed -i "s/pyyaml==6.0.2/pyyaml/g" pyproject.toml sed -i "s/redis==6.2.0/redis/g" pyproject.toml %generate_buildrequires %pyproject_buildrequires -x redis,s3,yaml %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L hishel %check %pyproject_check_import # Skip tests that need sqlite # asyncio triggers warning, needs an update #pytest -k "not test_storages" %files -n python3-hishel -f %{pyproject_files} %license LICENSE %doc README.md %changelog %autochangelog