# # spec file for package python-sklearn-pandas # # Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 # SciPy 1.6.0 dropped support for Python 3.6 %define skip_python36 1 Name: python-sklearn-pandas Version: 2.2.0 Release: 0 Summary: Pandas integration with sklearn License: BSD-2-Clause AND Zlib Group: Development/Languages/Python URL: https://github.com/scikit-learn-contrib/sklearn-pandas Source: %{url}/archive/v%{version}.tar.gz#/sklearn-pandas-%{version}-gh.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-numpy >= 1.18.1 Requires: python-pandas >= 1.0.5 Requires: python-scikit-learn >= 0.23.0 Requires: python-scipy >= 1.4.1 BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module numpy >= 1.18.1} BuildRequires: %{python_module pandas >= 1.0.5} BuildRequires: %{python_module pytest} BuildRequires: %{python_module scikit-learn >= 0.23.0} BuildRequires: %{python_module scipy >= 1.4.1} # /SECTION %python_subpackages %description This module provides a bridge between Scikit-Learn's machine learning methods and pandas-style Data Frames. %prep %setup -q -n sklearn-pandas-%{version} %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest -k "not README.rst" %files %{python_files} %doc README.rst %license LICENSE %{python_sitelib}/sklearn_pandas* %changelog