File python-pykwalify.spec of Package python-pykwalify

# spec file for package python-pykwalify
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name:           python-pykwalify
Version:        1.6.0
Release:        0
License:        MIT
Summary:        Python lib/cli for JSON/YAML schema validation
Group:          Development/Languages/Python
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
%if %{with test}
BuildRequires:  %{python_module docopt >= 0.6.2}
BuildRequires:  %{python_module python-dateutil >= 2.4.2}
BuildRequires:  %{python_module PyYAML >= 3.11}
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module testfixtures}
BuildRequires:  fdupes
Requires:       python-docopt >= 0.6.2
Requires:       python-python-dateutil >= 2.4.2
Requires:       python-PyYAML >= 3.11
Suggests:       python-ruamel.yaml >= 0.11.0
BuildArch:      noarch


YAML/JSON validation library
This framework is a port with a lot added functionality of the java version of the framework kwalify that can be found at:
The original source code can be found at:
The source code of the latest release that has been used can be found at: Please note that source code is not the original authors code but a fork/upload of the last release available in ruby.
The schema this library is base and extended from:

%setup -q -n pykwalify-%{version}


%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%python_exec test

%files %{python_files}
%python3_only %{_bindir}/pykwalify

openSUSE Build Service is sponsored by