2015-04-02 07:50:43 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-voluptuous
|
|
|
|
#
|
2018-03-23 15:09:10 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-04-02 07:50:43 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2016-08-10 16:24:45 +00:00
|
|
|
#
|
2015-04-02 07:50:43 +00:00
|
|
|
|
|
|
|
|
2017-07-07 13:03:39 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2015-04-02 07:50:43 +00:00
|
|
|
Name: python-voluptuous
|
2018-03-23 15:09:10 +00:00
|
|
|
Version: 0.11.1
|
2015-04-02 07:50:43 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Voluptuous is a Python data validation library
|
2016-08-10 16:24:45 +00:00
|
|
|
License: BSD-3-Clause
|
2015-04-02 07:50:43 +00:00
|
|
|
Group: Development/Languages/Python
|
2016-08-10 16:24:45 +00:00
|
|
|
Url: http://github.com/alecthomas/voluptuous
|
2016-08-11 16:06:02 +00:00
|
|
|
Source: https://pypi.io/packages/source/v/voluptuous/voluptuous-%{version}.tar.gz
|
2017-07-07 13:03:39 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module nose}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: python-rpm-macros
|
2015-04-02 07:50:43 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2017-07-07 13:03:39 +00:00
|
|
|
|
|
|
|
%python_subpackages
|
2015-04-02 07:50:43 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Voluptuous, *despite* the name, is a Python data validation library. It
|
|
|
|
is primarily intended for validating data coming into Python as JSON,
|
|
|
|
YAML, etc.
|
|
|
|
|
|
|
|
It has three goals:
|
|
|
|
|
|
|
|
1. Simplicity.
|
|
|
|
2. Support for complex data structures.
|
|
|
|
3. Provide useful error messages.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n voluptuous-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-07-07 13:03:39 +00:00
|
|
|
%python_build
|
2015-04-02 07:50:43 +00:00
|
|
|
|
|
|
|
%install
|
2017-07-07 13:03:39 +00:00
|
|
|
%python_install
|
2015-04-02 07:50:43 +00:00
|
|
|
|
|
|
|
%check
|
2017-07-07 13:03:39 +00:00
|
|
|
%python_exec %{_bindir}/nosetests
|
2015-04-02 07:50:43 +00:00
|
|
|
|
2017-07-07 13:03:39 +00:00
|
|
|
%files %{python_files}
|
2015-04-02 07:50:43 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING README.md README.rst
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|