File python-drf-yasg.spec of Package python-drf-yasg
#
# spec file for package python-drf-yasg
#
# Copyright (c) 2020 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 http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-drf-yasg
Version: 1.21.4
Release: 0
License: BSD-3-Clause
Summary: Automated generation of real Swagger/OpenAPI 2.0 schemas
Url: https://github.com/axnsan12/drf-yasg
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/d/drf-yasg/drf-yasg-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module setuptools_scm}
# SECTION test requirements
BuildRequires: %{python_module coreapi >= 2.3.3}
BuildRequires: %{python_module coreschema >= 0.0.4}
BuildRequires: %{python_module Django >= 1.11.7}
BuildRequires: %{python_module djangorestframework >= 3.8}
BuildRequires: %{python_module inflection >= 0.3.1}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module ruamel.yaml >= 0.15.34}
BuildRequires: %{python_module six >= 1.10.0}
BuildRequires: %{python_module uritemplate >= 3.0.0}
# /SECTION
BuildRequires: fdupes
Requires: python-coreapi >= 2.3.3
Requires: python-coreschema >= 0.0.4
Requires: python-Django >= 1.11.7
Requires: python-djangorestframework >= 3.8
Requires: python-inflection >= 0.3.1
Requires: python-packaging
Requires: python-ruamel.yaml >= 0.15.34
Requires: python-six >= 1.10.0
Requires: python-uritemplate >= 3.0.0
Suggests: python-swagger-spec-validator >= 2.1.0
BuildArch: noarch
%python_subpackages
%description
Automated generation of real Swagger/OpenAPI 2.0 schemas from Django Rest Framework code.
%prep
%setup -q -n drf-yasg-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
#%%check
#%%python_exec setup.py test
%files %{python_files}
%doc README.rst
%license LICENSE.rst
%{python_sitelib}/drf[_-]yasg*/
%changelog