2019-09-17 08:42:00 +00:00
|
|
|
#
|
2019-09-17 08:42:32 +00:00
|
|
|
# spec file for package python-python-jsonschema-objects
|
2019-09-17 08:42:00 +00:00
|
|
|
#
|
2025-04-28 16:49:44 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2019-09-17 08:42:00 +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.
|
|
|
|
|
2019-09-17 08:42:32 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2019-09-17 08:42:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
Name: python-python-jsonschema-objects
|
2025-04-28 16:49:44 +00:00
|
|
|
Version: 0.5.7
|
2019-09-17 08:42:00 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: An object wrapper for JSON Schema definitions
|
2019-09-17 08:42:32 +00:00
|
|
|
License: MIT
|
2025-04-28 16:49:44 +00:00
|
|
|
URL: https://github.com/cwacek/python-jsonschema-objects
|
2019-09-17 08:42:32 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/python_jsonschema_objects/python_jsonschema_objects-%{version}.tar.gz
|
2023-09-20 02:49:18 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
|
|
BuildRequires: %{python_module pip}
|
2019-09-17 08:42:32 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-09-20 02:49:18 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-09-17 08:42:32 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-Markdown >= 2.4
|
|
|
|
Requires: python-inflection >= 0.2
|
2023-09-20 02:49:18 +00:00
|
|
|
Requires: python-jsonschema >= 4.18
|
2019-09-17 08:42:32 +00:00
|
|
|
BuildArch: noarch
|
2019-09-17 08:42:00 +00:00
|
|
|
# SECTION test requirements
|
2019-09-17 08:42:32 +00:00
|
|
|
BuildRequires: %{python_module Markdown >= 2.4}
|
2019-09-17 08:42:00 +00:00
|
|
|
BuildRequires: %{python_module inflection >= 0.2}
|
2023-09-20 02:49:18 +00:00
|
|
|
BuildRequires: %{python_module jsonschema >= 4.18}
|
2019-09-17 08:42:00 +00:00
|
|
|
BuildRequires: %{python_module pytest-mock}
|
2019-09-17 08:42:32 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-09-17 08:42:00 +00:00
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
An object wrapper for JSON Schema definitions
|
|
|
|
|
|
|
|
%prep
|
2022-08-27 09:50:23 +00:00
|
|
|
%autosetup -p1 -n python_jsonschema_objects-%{version}
|
2019-09-17 08:42:00 +00:00
|
|
|
|
|
|
|
%build
|
2023-09-20 02:49:18 +00:00
|
|
|
%pyproject_wheel
|
2019-09-17 08:42:00 +00:00
|
|
|
|
|
|
|
%install
|
2023-09-20 02:49:18 +00:00
|
|
|
%pyproject_install
|
2019-09-17 08:42:00 +00:00
|
|
|
%{python_expand rm -r %{buildroot}%{$python_sitelib}/python_jsonschema_objects/examples/
|
|
|
|
%fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
}
|
|
|
|
|
|
|
|
%check
|
2023-07-12 08:26:48 +00:00
|
|
|
%pytest
|
2019-09-17 08:42:00 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
2023-09-20 02:49:18 +00:00
|
|
|
%{python_sitelib}/python_jsonschema_objects
|
|
|
|
%{python_sitelib}/python_jsonschema_objects-%{version}.dist-info
|
2019-09-17 08:42:00 +00:00
|
|
|
|
|
|
|
%changelog
|