%bcond tests 1 Name: python-sklearn-compat Version: 0.1.5 Release: %autorelease Summary: Ease support for compatible scikit-learn estimators across versions License: BSD-3-Clause URL: https://github.com/sklearn-compat/sklearn-compat Source: %{pypi_source sklearn_compat} BuildSystem: pyproject BuildOption(install): -l sklearn_compat BuildArch: noarch %if %{with tests} # See [tool.pixi.feature.tests.dependencies] BuildRequires: %{py3_dist pandas} # Not packaged: python-polars # BuildRequires: %%{py3_dist polars} BuildRequires: %{py3_dist pyarrow} BuildRequires: %{py3_dist pytz} BuildRequires: %{py3_dist pytest} # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters # BuildRequires: %%{py3_dist pytest-cov} BuildRequires: %{py3_dist pytest-xdist} %endif %global common_description %{expand: This is a small Python package that helps developers writing scikit-learn compatible estimators to support multiple scikit-learn versions.} %description %{common_description} %package -n python3-sklearn-compat Summary: %{summary} %description -n python3-sklearn-compat %{common_description} %check -a %if %{with tests} %pytest %endif %files -n python3-sklearn-compat -f %{pyproject_files} %doc README.md %changelog %autochangelog