File python-jsonpickle.spec of Package python-jsonpickle

#
# spec file for package python-jsonpickle
#
# Copyright (c) 2018 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 https://bugs.opensuse.org/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-jsonpickle
Version:        0.9.6
Release:        0
Url:            http://jsonpickle.github.com/
Summary:        Python library for serializing any arbitrary object graph into JSON
License:        BSD-3-Clause
Group:          Development/Languages/Python
Source:         https://files.pythonhosted.org/packages/source/j/jsonpickle/jsonpickle-%{version}.tar.gz
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
# SECTION test requirements
BuildRequires:  %{python_module SQLAlchemy}
BuildRequires:  %{python_module coverage}
BuildRequires:  %{python_module nose}
BuildRequires:  %{python_module numpy}
BuildRequires:  %{python_module pymongo}
# /SECTION
# SECTION python 2 test requirements
BuildRequires:  python-enum34
# /SECTION
Recommends:     python-simplejson
Suggests:       python-demjson
Suggests:       python-ujson
Suggests:       python-yajl
# SECTION python 2 requirements
Suggests:       python-feedparser
Suggests:       python-jsonlib
BuildArch:      noarch
# /SECTION
%python_subpackages

%description
Python library for serializing any arbitrary object graph into JSON.
It can take almost any Python object and turn the object into JSON.
Additionally, it can reconstitute the object back into Python.

%prep
%setup -q -n jsonpickle-%{version}

%build
%python_build

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

%check
%python_expand nosetests-%{$python_bin_suffix}

%files %{python_files}
%doc README.rst
%license COPYING
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by