2018-02-06 12:39:56 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-Cerberus
|
|
|
|
#
|
2022-08-14 08:13:14 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
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
|
|
|
|
|
|
|
|
2022-08-14 08:13:14 +02:00
|
|
|
%define skip_python2 1
|
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
|
2022-10-13 09:12:57 +02:00
|
|
|
URL: https://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
|
2020-06-29 13:44:53 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-02-06 12:39:56 +01:00
|
|
|
# /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
|
2020-06-29 13:44:53 +02:00
|
|
|
%pytest
|
2018-02-06 12:39:56 +01:00
|
|
|
|
|
|
|
%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
|