diff --git a/python-Pygments.changes b/python-Pygments.changes index 0ac9939..8370055 100644 --- a/python-Pygments.changes +++ b/python-Pygments.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 18 12:58:46 UTC 2022 - Matej Cepl + +- Add BR of wcag-contrast-ratio to enable more tests. + ------------------------------------------------------------------- Mon Jul 18 12:11:36 UTC 2022 - Matej Cepl diff --git a/python-Pygments.spec b/python-Pygments.spec index ca124d8..609c56a 100644 --- a/python-Pygments.spec +++ b/python-Pygments.spec @@ -37,6 +37,7 @@ BuildRequires: %{python_module base >= 3.5} BuildRequires: %{python_module lxml} BuildRequires: %{python_module pytest >= 7} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wcag-contrast-ratio} BuildRequires: fdupes BuildRequires: python-rpm-macros >= 20210929 # Preferred for plugin loading, see https://pygments.org/docs/plugins/ @@ -84,7 +85,7 @@ install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1 %check # skip test that requires wcag-contrast-ratio Python package -%pytest --ignore tests/contrast/test_contrasts.py +%pytest %pre # If libalternatives is used: Removing old update-alternatives entries.