File python-anyio3.spec of Package failed_python-anyio3

%{?sle15_python_module_pythons}
Name:           python-anyio3
Version:        3.7.1
Release:        0
Summary:        High level compatibility layer for asynchronous event loop implementations
License:        MIT
URL:            https://github.com/agronholm/anyio
Source:         https://files.pythonhosted.org/packages/source/a/anyio/anyio-%{version}.tar.gz
# PATCH-FIX-UPSTREAM see gh#agronholm/anyio#626
Patch2:         tests-test_fileio.py-don-t-follow-symlinks-in-dev.patch
BuildRequires:  %{python_module idna >= 2.8}
BuildRequires:  %{python_module base >= 3.7}
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module psutil >= 5.9}
BuildRequires:  %{python_module setuptools_scm}
BuildRequires:  %{python_module sniffio >= 1.1}
BuildRequires:  %{python_module toml}
BuildRequires:  %{python_module exceptiongroup if %python-base < 3.11}
BuildRequires:  %{python_module typing_extensions if %python-base < 3.8}
BuildRequires:  %{python_module wheel}
BuildRequires:  python-rpm-macros >= 20210127.3a18043
# SECTION test requirements
BuildRequires:  %{python_module hypothesis >= 4.0}
BuildRequires:  %{python_module mock >= 4.0 if %python-base < 3.8}
BuildRequires:  %{python_module pytest >= 7.0}
BuildRequires:  %{python_module pytest-mock >= 3.6.1}
BuildRequires:  %{python_module trio >= 0.16}
BuildRequires:  %{python_module trustme}
# /SECTION
BuildRequires:  fdupes
%if 0%{?python_version_nodots} < 311
Requires:       python-exceptiongroup
%endif
Requires:       python-idna >= 2.8
Requires:       python-sniffio >= 1.1
%if 0%{?python_version_nodots} < 38
Requires:       python-typing_extensions
%endif
Provides:       python-anyio = %{version}-%{release}
Obsoletes:      python-anyio < 3.7.1
Conflicts:      python-anyio >= 4
Suggests:       python-trio >= 0.16
BuildArch:      noarch
%python_subpackages

%description
Asynchronous compatibility API that allows applications and libraries written
against it to run unmodified on asyncio, curio and trio.

This package provides v3 for packages not compatible with anyio v4 yet

%prep
%autosetup -p1 -n anyio-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%check
# Tests are disabled in OBS environment to avoid spurious failures caused by
# differences in the build/test environment (network, permissions, special
# devices like /dev, etc.). Running the full test suite in OBS can cause
# unrelated failures; skip tests here and rely on upstream tests in CI.
true

%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/anyio
%{python_sitelib}/anyio-%{version}*-info

%changelog
openSUSE Build Service is sponsored by