File openapi-pydantic.spec of Package openapi-pydantic
#
# spec file for package python-openapi-pydantic
#
# Copyright (c) 2025 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-%{**}}
%{?sle15_python_module_pythons}
Name: python-openapi-pydantic
Version: 0.5.1
Release: 0
Summary: Pydantic OpenAPI schema implementation
License: MIT
URL: None
Source: openapi-pydantic-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: python311-poetry-core >= 1.0.0
BuildRequires: python311-poetry >= 1.0.0
BuildRequires: fdupes
Requires: python-pydantic >= 1.8
BuildArch: noarch
%python_subpackages
%description
OpenAPI schema implemented in [Pydantic](https://github.com/samuelcolvin/pydantic). Both Pydantic 1.8+ and 2.x are supported.
%prep
%autosetup -p1 -n openapi-pydantic-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%{python_sitelib}/openapi_pydantic
%{python_sitelib}/openapi_pydantic-%{version}.dist-info
%changelog