forked from pool/python-openapi-schema-validator
- version update to 0.2.3 * readOnly and writeOnly on jsonschema4 fix #41 * Validate oneOf, anyOf and allOf with discriminator (cherry-pick from 0.3.x) #30 * Revert "make jsonschema4 compatible (DeprecationWarning fix)" #34 * Drop python 3.6 support (cherry-pick from 0.3.x and part 2) #35 * Limit jsonschema dependency #36 * switch to poetry #27 * drop python 2.7 and 3.5 support #27 #28 * make jsonschema4 compatible (DeprecationWarning fix) #25 * Fix required in composition #16 * Prevent Schema Mutation #26 * Stop assigning a version to our Validator (#12) * Switch to a MIT-licensed dependency (#4) * Pypi license fix (#10) * jsonschema dependency fix * Permit uppercase characters in UUID (#8) - python-mock is not required for build OBS-URL: https://build.opensuse.org/request/show/965354 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-schema-validator?expand=0&rev=3
76 lines
2.4 KiB
RPMSpec
76 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python-openapi-schema-validator
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-openapi-schema-validator
|
|
Version: 0.2.3
|
|
Release: 0
|
|
Summary: OpenAPI schema validator for Python
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/p1c2u/openapi-schema-validator
|
|
Source: https://github.com/p1c2u/openapi-schema-validator/archive/%{version}.tar.gz
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module poetry}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-isodate
|
|
Requires: python-jsonschema
|
|
Requires: python-setuptools
|
|
Requires: python-six
|
|
Requires: python-strict-rfc3339
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module isodate}
|
|
BuildRequires: %{python_module jsonschema}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module six}
|
|
BuildRequires: %{python_module strict-rfc3339}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Openapi-schema-validator is a Python library that validates
|
|
schema against the OpenAPI Schema Specification v3.0 which
|
|
is an extended subset of the JSON Schema Specification
|
|
Wright Draft 00.
|
|
|
|
%prep
|
|
%setup -q -n openapi-schema-validator-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
sed -i 's:tool.pytest.ini_options:hide:' pyproject.toml
|
|
# no rfc3339-validator installed
|
|
sed -i 's:\(DATETIME_HAS_RFC3339_VALIDATOR.*\)True:\1False:' tests/integration/test_validators.py
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|