Blob Blame History Raw
%global pypi_name mdit-py-plugins

Name:           python-%{pypi_name}
Version:        0.2.8
Release:        3%{?dist}
Summary:        Collection of plugins for markdown-it-py

# Both the package and its plugins are licensed under MIT
License:        MIT
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3dist(pytest)

%global _description %{expand:
Collection of core plugins for markdown-it-py.

%description %_description

%package -n     python3-%{pypi_name}
Summary:        %{summary}

%description -n python3-%{pypi_name} %_description

%autosetup -p1 -n %{pypi_name}-%{version}

# Unpin version from runtime dependency (we have later one)
sed -i 's/markdown-it-py~=1.0/markdown-it-py/' setup.cfg

%pyproject_buildrequires -r


%pyproject_save_files mdit_py_plugins

# Skip tests using pytest-regression which is not available in Fedora
%pytest -k "not test_plugin_parse and not test_no_new_line_issue and not test_tokens"

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE

* Fri Jul 23 2021 Fedora Release Engineering <> - 0.2.8-3
- Rebuilt for

* Fri Jun 04 2021 Python Maint <> - 0.2.8-2
- Rebuilt for Python 3.10

* Thu May 13 2021 Karolina Surma <> - 0.2.8-1
- Initial package.