File python-pymdown-extensions.spec of Package python-pymdown-extensions
#
# spec file for package python-pymdown-extensions
#
# 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 https://bugs.opensuse.org/
#
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pymdown-extensions
Version: 9.6
Release: 0
Summary: Extensions for python Markdown
License: MIT
URL: https://facelessuser.github.io/pymdown-extensions/
Source0: https://files.pythonhosted.org/packages/source/p/pymdown_extensions/pymdown_extensions-%{version}.tar.gz
BuildRequires: %{python_module Markdown >= 3.2}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module Pygments >= 2.4}
BuildRequires: %{python_module hatchling >= 0.21.1}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Markdown >= 3.2
Recommends: python-Pygments >= 2.4
BuildArch: noarch
%python_subpackages
%description
PyMdown Extensions is a collection of extensions for Python Markdown:
* Arithmatex
* B64
* BetterEm
* Caret
* Critic
* Details
* Emoji
* EscapeAll
* Extra
* Highlight
* InlineHilite
* Keys
* MagicLink
* Mark
* PathConverter
* ProgressBar
* SaneHeaders
* SmartSymbols
* Snippets
* StripHTML
* SuperFences
* Tabbed
* Tasklist
* Tilde
All extensions are found under pymdownx.
%prep
%autosetup -n pymdown_extensions-%{version} -p1
# drop executable bit: not scripts
chmod -x pymdownx/{caret,mark,tilde}.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE.md
%doc README.md docs/*
%{python_sitelib}/pymdown_extensions-%{version}.dist-info
%{python_sitelib}/pymdownx
%changelog