File python-markdown-it-py.spec of Package python-markdown-it-py

#
# spec file for package python-markdown-it-py
#
# 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-markdown-it-py
Version:        0.5.5
Release:        0
License:        MIT
Summary:        Python port of markdown-it Markdown parsing, done right!
Url:            https://github.com/executablebooks/markdown-it-py
Group:          Development/Languages/Python
Source:         https://files.pythonhosted.org/packages/source/m/markdown-it-py/markdown-it-py-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
# SECTION test requirements
BuildRequires:  %{python_module attrs >= 19}
# /SECTION
BuildRequires:  fdupes
Requires:       python-attrs >= 19
Suggests:       python-pre-commit >= 2.6
Suggests:       python-commonmark >= 0.9.1
Suggests:       python-markdown >= 3.2
Suggests:       python-mistune >= 0.8.4
Suggests:       python-mistletoe-ebp >= 0.10.0
Suggests:       python-panflute >= 1.12
Suggests:       python-myst-nb >= 0.10.0
Suggests:       python-sphinx_book_theme
Suggests:       python-sphinx-panels >= 0.4.0
Suggests:       python-sphinx-copybutton
Suggests:       python-sphinx >= 2
Suggests:       python-pyyaml
Suggests:       python-coverage
Suggests:       python-pytest >= 3.6
Suggests:       python-pytest-cov
Suggests:       python-pytest-regressions
Suggests:       python-pytest-benchmark >= 3.2
Suggests:       python-psutil
BuildArch:      noarch

Requires(post):   update-alternatives
Requires(postun):   update-alternatives
%python_subpackages

%description
Python port of markdown-it. Markdown parsing, done right!

%prep
%setup -q -n markdown-it-py-%{version}

%build
%python_build

%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/markdown-it-py
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%post
%python_install_alternative markdown-it-py

%postun
%python_uninstall_alternative markdown-it-py

%files %{python_files}
%doc CHANGELOG.md README.md
%license LICENSE LICENSE.markdown-it
%python_alternative %{_bindir}/markdown-it
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by