File python-mkdocs-material.spec of Package python-mkdocs-material
#
# spec file for package python-mkdocs-material
#
# 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 http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-mkdocs-material
Version: 8.5.6
Release: 0
License: MIT
Summary: A Material Design theme for MkDocs
Url: https://github.com/squidfunk/mkdocs-material
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/m/mkdocs-material/mkdocs_material-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module hatch_nodejs_version}
BuildRequires: %{python_module hatch-requirements-txt}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module setuptools}
# SECTION test requirements
BuildRequires: %{python_module Markdown >= 3.2}
BuildRequires: %{python_module mkdocs >= 1.1}
BuildRequires: %{python_module mkdocs-material-extensions >= 1.0}
BuildRequires: %{python_module Pygments >= 2.4}
BuildRequires: %{python_module pymdown-extensions >= 7.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module lunr}
BuildRequires: %{python_module tqdm}
BuildRequires: %{python_module joblib}
BuildRequires: %{python_module nltk >= 3.2.5}
BuildRequires: nodejs-common
# /SECTION
BuildRequires: fdupes
Requires: python-Markdown >= 3.2
Requires: python-mkdocs >= 1.1
Requires: python-mkdocs-material-extensions >= 1.0
Requires: python-Pygments >= 2.4
Requires: python-pymdown-extensions >= 7.0
Recommends: python-lunr
Suggests: python-nltk >= 3.2.5
BuildArch: noarch
%python_subpackages
%description
A Material Design theme for MkDocs.
%prep
%setup -q -n mkdocs_material-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
#%%pytest 0
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/material/
%{python_sitelib}/mkdocs[_-]material*/
%changelog