2018-02-06 12:39:56 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-Cerberus
|
|
|
|
#
|
2019-01-15 22:04:12 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2018-02-06 12:39:56 +01: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.
|
|
|
|
|
2019-05-11 11:21:46 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-12-04 14:19:12 +01:00
|
|
|
#
|
2018-02-06 12:39:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-Cerberus
|
2019-11-12 02:36:27 +01:00
|
|
|
Version: 1.3.2
|
2018-02-06 12:39:56 +01:00
|
|
|
Release: 0
|
2018-12-05 10:07:48 +01:00
|
|
|
Summary: Extensible schema and data validation tool for Python dictionaries
|
2018-12-04 14:19:12 +01:00
|
|
|
License: ISC
|
2018-02-06 12:39:56 +01:00
|
|
|
Group: Development/Languages/Python
|
2018-12-04 14:19:12 +01:00
|
|
|
Url: http://github.com/nicolaiarocci/cerberus
|
2018-02-06 12:39:56 +01:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/C/Cerberus/Cerberus-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-12-04 14:19:12 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-02-06 12:39:56 +01:00
|
|
|
# SECTION tests
|
|
|
|
BuildRequires: %{python_module pytest-runner}
|
|
|
|
# /SECTION
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Cerberus provides type checking and other base functionality out of the box and
|
2018-12-05 10:07:48 +01:00
|
|
|
is designed to be non-blocking and extensible, allowing for custom
|
2018-02-06 12:39:56 +01:00
|
|
|
validation.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Cerberus-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{python_expand rm -rf _build*/ build/
|
|
|
|
$python setup.py test
|
|
|
|
}
|
|
|
|
|
|
|
|
%files %{python_files}
|
2019-01-15 22:05:51 +01:00
|
|
|
%doc README.rst UPGRADING.rst AUTHORS
|
2018-02-06 12:39:56 +01:00
|
|
|
%license LICENSE
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|