2018-05-24 20:56:36 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-jsonpickle
|
|
|
|
|
#
|
2023-01-24 08:29:53 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-05-24 20:56:36 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
2018-12-04 13:36:05 +00:00
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-24 20:56:36 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-jsonpickle
|
2023-01-24 08:29:53 +00:00
|
|
|
Version: 3.0.1
|
2018-05-24 20:56:36 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Python library for serializing any arbitrary object graph into JSON
|
|
|
|
|
License: BSD-3-Clause
|
2019-03-19 08:20:58 +00:00
|
|
|
URL: https://github.com/jsonpickle/jsonpickle
|
2018-05-24 20:56:36 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/j/jsonpickle/jsonpickle-%{version}.tar.gz
|
2023-01-24 08:29:53 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
2021-02-16 10:37:30 +00:00
|
|
|
BuildRequires: %{python_module importlib_metadata if %python-base < 3.8}
|
|
|
|
|
BuildRequires: %{python_module setuptools_scm >= 3.4.1}
|
2018-12-04 13:36:05 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-05-24 20:56:36 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2021-02-16 10:37:30 +00:00
|
|
|
%if 0%{python_version_nodots} < 38
|
|
|
|
|
Requires: python-importlib_metadata
|
|
|
|
|
%endif
|
2019-03-19 08:20:58 +00:00
|
|
|
Recommends: python-simplejson
|
|
|
|
|
Suggests: python-ujson
|
2021-02-16 10:37:30 +00:00
|
|
|
Suggests: python-numpy
|
|
|
|
|
Suggests: python-pandas
|
2020-03-14 08:26:48 +00:00
|
|
|
BuildArch: noarch
|
2018-05-24 20:56:36 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
|
BuildRequires: %{python_module SQLAlchemy}
|
2021-02-16 10:37:30 +00:00
|
|
|
BuildRequires: %{python_module ecdsa}
|
2023-01-24 08:29:53 +00:00
|
|
|
BuildRequires: %{python_module gmpy2}
|
|
|
|
|
BuildRequires: %{python_module numpy}
|
|
|
|
|
BuildRequires: %{python_module pandas}
|
2018-05-24 20:56:36 +00:00
|
|
|
BuildRequires: %{python_module pymongo}
|
2019-03-15 13:07:06 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2023-01-24 08:29:53 +00:00
|
|
|
BuildRequires: %{python_module scikit-learn}
|
2021-02-16 10:37:30 +00:00
|
|
|
BuildRequires: %{python_module simplejson}
|
|
|
|
|
BuildRequires: %{python_module ujson}
|
|
|
|
|
# /SECTION
|
2018-05-24 20:56:36 +00:00
|
|
|
%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
|
2023-01-24 08:29:53 +00:00
|
|
|
%autosetup -p1 -n jsonpickle-%{version}
|
|
|
|
|
sed -i 's/ --cov//' pytest.ini
|
2018-05-24 20:56:36 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
2023-01-24 08:29:53 +00:00
|
|
|
%pytest -ra
|
2018-05-24 20:56:36 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
2021-02-16 10:37:30 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst CHANGES.rst
|
|
|
|
|
%{python_sitelib}/jsonpickle
|
|
|
|
|
%{python_sitelib}/jsonpickle-%{version}*-info
|
2018-05-24 20:56:36 +00:00
|
|
|
|
|
|
|
|
%changelog
|