File python-sphinxcontrib-httpdomain.spec of Package python-sphinxcontrib-httpdomain
#
# spec file for package python-sphinxcontrib-httpdomain
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-sphinxcontrib-httpdomain
Version: 2.0.0
Release: 0
Summary: Sphinx domain for HTTP APIs
License: BSD-2-Clause
URL: https://github.com/sphinx-contrib/httpdomain
Source: https://github.com/sphinx-contrib/httpdomain/archive/%{version}.tar.gz
BuildRequires: %{python_module Flask >= 3.1.2}
BuildRequires: %{python_module Sphinx >= 6.0}
BuildRequires: %{python_module bottle >= 0.13.4}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 9.0.2}
BuildRequires: %{python_module tornado >= 6.5.4}
BuildRequires: %{python_module uv-build >= 0.9.11}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Sphinx >= 6.0
BuildArch: noarch
%python_subpackages
%description
This contrib extension, sphinxcontrib.httpdomain provides a Sphinx
domain for describing RESTful HTTP APIs.
You can find the documentation from the following URL:
https://sphinxcontrib-httpdomain.readthedocs.io/en/stable/
%prep
%autosetup -p1 -n httpdomain-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest test -k "not test_get_routes_mount"
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/sphinxcontrib/autohttp/
%{python_sitelib}/sphinxcontrib/locale/
%{python_sitelib}/sphinxcontrib/httpdomain/
%{python_sitelib}/sphinxcontrib_httpdomain-%{version}.dist-info
%changelog