Blob Blame History Raw
# tests are enabled by default
%bcond_without tests

Name:           python-six
Version:        1.16.0
Release:        %autorelease
Summary:        Python 2 and 3 compatibility utilities

License:        MIT
Source0:        %{pypi_source six}

# tkinter.tix was removed from Python 3.13, skip the test
Patch:          tkinter.tix-was-removed-from-Python-3.13.patch

BuildArch:      noarch

BuildRequires:  python%{python3_pkgversion}-devel
BuildRequires:  pyproject-rpm-macros

%if %{with tests}
BuildRequires:  python%{python3_pkgversion}-pytest
BuildRequires:  python%{python3_pkgversion}-tkinter

%global _description %{expand:
Six is a Python 2 and 3 compatibility library. It provides utility functions
for smoothing over the differences between the Python versions with the goal
of writing Python code that is compatible on both Python versions.}

%description %{_description}

%package -n python%{python3_pkgversion}-six
Summary:        %{summary}

%description -n python%{python3_pkgversion}-six %{_description}

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

%pyproject_buildrequires -r


%pyproject_save_files six

%if %{with tests}

%files -n python%{python3_pkgversion}-six -f %{pyproject_files}
%license LICENSE
%doc README.rst documentation/index.rst