15
0

- Add stdlib-typing_extensions.patch making typing_extensions

package just an optional requirement (gh#omnilib/aioitertools#49).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aioitertools?expand=0&rev=3
This commit is contained in:
2021-05-13 18:20:31 +00:00
committed by Git OBS Bridge
parent 6fcd93ce52
commit 535b17073d
3 changed files with 69 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-aioitertools
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,12 +26,15 @@ License: MIT
Group: Development/Languages/Python
URL: https://aioitertools.omnilib.dev
Source: https://files.pythonhosted.org/packages/source/a/aioitertools/aioitertools-%{version}.tar.gz
# PATCH-FIX-UPSTREAM stdlib-typing_extensions.patch gh#omnilib/aioitertools#49 mcepl@suse.com
# Improve dependencies for Python 3.8+
Patch0: stdlib-typing_extensions.patch
BuildRequires: %{python_module asyncio}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module typing_extensions >= 3.7}
BuildRequires: %{python_module typing_extensions if %python-base < 3.8}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-typing_extensions >= 3.7
Requires: (python3-typing_extensions >= 3.7 if python3-base < 3.8)
BuildArch: noarch
%python_subpackages
@@ -39,7 +42,7 @@ BuildArch: noarch
Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables.
%prep
%setup -q -n aioitertools-%{version}
%autosetup -p1 -n aioitertools-%{version}
%build
%python_build
@@ -49,7 +52,7 @@ Implementation of itertools, builtins, and more for AsyncIO and mixed-type itera
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m unittest discover
%pyunittest discover -v
%files %{python_files}
%doc README.md CHANGELOG.md