File python-seaborn.spec of Package python-seaborn

# spec file for package python-seaborn
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

# Spurious test failures due to upstream changes
# Should be fixed in next release after 0.7.1
%bcond_with tests

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-seaborn
Version:        0.8.1
Release:        0
Summary:        Statistical data visualization for python
License:        BSD-3-Clause
Group:          Development/Languages/Python
BuildRequires:  %{python_module Pillow}
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module fastcluster}
BuildRequires:  %{python_module matplotlib}
BuildRequires:  %{python_module numpy-devel}
BuildRequires:  %{python_module pandas}
BuildRequires:  %{python_module patsy}
BuildRequires:  %{python_module scipy}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module six}
BuildRequires:  %{python_module statsmodels}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
%if %{with tests}
# Testing requirements
BuildRequires:  %{python_module jupyter_ipython}
BuildRequires:  %{python_module jupyter_notebook}
BuildRequires:  %{python_module nose}
BuildConflicts: python-buildservice-tweak
Requires:       python-matplotlib
Requires:       python-numpy
Requires:       python-pandas
Requires:       python-scipy
Requires:       python-six
Recommends:     python-Pillow
Recommends:     python-fastcluster
Recommends:     python-patsy
Recommends:     python-statsmodels
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Seaborn is a library for making attractive and informative
statistical graphics in Python. It is built on top of
matplotlib and tightly integrated with the PyData stack,
including support for numpy and pandas data structures and
statistical routines from scipy and statsmodels.

Some of the features that seaborn offers are:
- Several built-in themes that improve on the default matplotlib
- Tools for choosing color palettes to make beautiful plots that
  reveal patterns in your data
- Functions for visualizing univariate and bivariate distributions
  or for comparing them between subsets of data
- Tools that fit and visualize linear regression models for different
  kinds of independent and dependent variables
- Functions that visualize matrices of data and use clustering
  algorithms to discover structure in those matrices
- A function to plot statistical timeseries data with flexible
  estimation and representation of uncertainty around the estimate
- High-level abstractions for structuring grids of plots that let you
  easily build complex visualizations

%setup -q -n seaborn-%{version}


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

%if %{with tests}
%{python_expand export PYTHONPATH="%{buildroot}%{$python_sitelib}"

%files %{python_files}
%doc licences/

openSUSE Build Service is sponsored by