2018-05-24 20:56:29 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-colander
|
|
|
|
|
#
|
2020-01-19 07:30:45 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2019-02-08 11:13:50 +00:00
|
|
|
# Copyright (c) 2013-2019 LISA GmbH, Bingen, Germany.
|
2018-05-24 20:56:29 +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:20:20 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2018-05-24 20:56:29 +00:00
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
Name: python-colander
|
2019-02-08 11:13:50 +00:00
|
|
|
Version: 1.7.0
|
2018-05-24 20:56:29 +00:00
|
|
|
Release: 0
|
2018-12-05 19:21:30 +00:00
|
|
|
Summary: A schema-based serialization and deserialization library
|
2018-12-04 13:20:20 +00:00
|
|
|
License: BSD-4-Clause AND ZPL-2.1 AND MIT
|
2019-10-14 11:44:21 +00:00
|
|
|
URL: https://github.com/Pylons/colander
|
2018-05-24 20:56:29 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/c/colander/colander-%{version}.tar.gz
|
2020-04-17 08:13:52 +00:00
|
|
|
# PATCH-FIX-UPSTREAM fix-tests.patch gh#Pylons/colander#210 mcepl@suse.com
|
|
|
|
|
# Fix tests to work with pytest (and nose2) as well
|
|
|
|
|
Patch0: fix-tests.patch
|
2018-05-24 20:56:29 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: %{python_module translationstring}
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-10-14 11:44:21 +00:00
|
|
|
Requires: python-iso8601
|
|
|
|
|
Requires: python-translationstring
|
2020-04-20 13:09:11 +00:00
|
|
|
Obsoletes: python2-colander-doc
|
|
|
|
|
Obsoletes: python2-colander-lang
|
|
|
|
|
Obsoletes: python3-colander-doc
|
|
|
|
|
Obsoletes: python3-colander-lang
|
2019-10-14 11:44:21 +00:00
|
|
|
BuildArch: noarch
|
2018-05-24 20:56:29 +00:00
|
|
|
# SECTION test requirements
|
2018-12-04 13:20:20 +00:00
|
|
|
BuildRequires: %{python_module coverage}
|
2018-05-24 20:56:29 +00:00
|
|
|
BuildRequires: %{python_module hupper}
|
2018-12-04 13:20:20 +00:00
|
|
|
BuildRequires: %{python_module iso8601}
|
2018-05-24 20:56:29 +00:00
|
|
|
BuildRequires: %{python_module plaster-pastedeploy}
|
|
|
|
|
BuildRequires: %{python_module plaster}
|
2020-04-17 08:13:52 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-05-24 20:56:29 +00:00
|
|
|
# /SECTION
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
An extensible package which can be used to:
|
|
|
|
|
|
|
|
|
|
- deserialize and validate a data structure composed of strings,
|
|
|
|
|
mappings, and lists.
|
|
|
|
|
|
|
|
|
|
- serialize an arbitrary data structure to a data structure composed
|
|
|
|
|
of strings, mappings, and lists.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n colander-%{version}
|
2020-04-17 08:13:52 +00:00
|
|
|
%autopatch -p1
|
2018-05-24 20:56:29 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%find_lang colander
|
2019-10-14 11:44:21 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2018-05-24 20:56:29 +00:00
|
|
|
|
|
|
|
|
%check
|
2020-04-17 08:13:52 +00:00
|
|
|
%pytest
|
2018-05-24 20:56:29 +00:00
|
|
|
|
2020-04-20 13:09:11 +00:00
|
|
|
%files %{python_files}
|
2018-05-24 20:56:29 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
|
%doc CHANGES.rst README.rst
|
2020-04-20 09:20:05 +00:00
|
|
|
%{python_sitelib}/colander*
|
2018-05-24 20:56:29 +00:00
|
|
|
|
|
|
|
|
%changelog
|