2018-05-15 18:42:56 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-schema
|
|
|
|
#
|
2022-05-04 09:30:56 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-05-15 18:42:56 +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 14:03:39 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2018-05-15 18:42:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-schema
|
2022-05-04 09:30:56 +00:00
|
|
|
Version: 0.7.5
|
2018-05-15 18:42:56 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Data validation library
|
2018-12-04 14:03:39 +00:00
|
|
|
License: MIT
|
2020-03-26 13:07:28 +00:00
|
|
|
URL: https://github.com/keleshev/schema
|
2018-05-15 18:42:56 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/schema/schema-%{version}.tar.gz
|
2022-08-11 05:43:58 +00:00
|
|
|
# PATCH-FIX-UPSTREAM gh#keleshev/schema#273
|
|
|
|
Patch0: remove-old-python-support.patch
|
2018-05-15 18:42:56 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
2018-12-04 14:03:39 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-03-26 18:54:18 +00:00
|
|
|
# SECTION test requirements
|
2018-05-15 18:42:56 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-03-26 18:54:18 +00:00
|
|
|
# /SECTION
|
2018-05-15 18:42:56 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Schema is a library for validating Python data structures, such as those
|
|
|
|
obtained from config-files, forms, external services or command-line
|
|
|
|
parsing, converted from JSON/YAML (or something else) to Python data-types.
|
|
|
|
|
|
|
|
%prep
|
2022-08-11 05:43:58 +00:00
|
|
|
%autosetup -p1 -n schema-%{version}
|
2018-05-15 18:42:56 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2020-03-26 13:07:28 +00:00
|
|
|
%pytest test_schema.py
|
2018-05-15 18:42:56 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE-MIT
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|