diff --git a/pygments25.patch b/pygments25.patch
new file mode 100644
index 0000000..7e9bba3
--- /dev/null
+++ b/pygments25.patch
@@ -0,0 +1,25 @@
+Index: readme_renderer-24.0/tests/fixtures/test_CommonMark_008.html
+===================================================================
+--- readme_renderer-24.0.orig/tests/fixtures/test_CommonMark_008.html
++++ readme_renderer-24.0/tests/fixtures/test_CommonMark_008.html
+@@ -1,6 +1,6 @@
+
Here is some Python code for a Dog
:
+ class Dog(Animal):
+- def __init__(self, name):
++ def __init__(self, name):
+ self.name = name
+
+ def make_sound(self):
+Index: readme_renderer-24.0/tests/fixtures/test_rst_008.html
+===================================================================
+--- readme_renderer-24.0.orig/tests/fixtures/test_rst_008.html
++++ readme_renderer-24.0/tests/fixtures/test_rst_008.html
+@@ -4,7 +4,7 @@
+ self.name = name
+
+ def make_sound(self):
+- print('Ruff!')
++ print('Ruff!')
+
+ dog = Dog('Fido')
+
diff --git a/python-readme_renderer.changes b/python-readme_renderer.changes
index 84263b3..74d567c 100644
--- a/python-readme_renderer.changes
+++ b/python-readme_renderer.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Sat Mar 14 09:44:32 UTC 2020 - Tomáš Chvátal
+
+- Add patch to fix test fixtures with new pygments:
+ * pygments25.patch
+
-------------------------------------------------------------------
Sun Mar 3 09:43:05 UTC 2019 - John Vandenberg
diff --git a/python-readme_renderer.spec b/python-readme_renderer.spec
index a590867..8c41dcc 100644
--- a/python-readme_renderer.spec
+++ b/python-readme_renderer.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-readme_renderer
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -22,9 +22,9 @@ Version: 24.0
Release: 0
Summary: A library for rendering "readme" descriptions
License: Apache-2.0
-Group: Development/Languages/Python
-Url: https://github.com/pypa/readme_renderer
+URL: https://github.com/pypa/readme_renderer
Source: https://files.pythonhosted.org/packages/source/r/readme_renderer/readme_renderer-%{version}.tar.gz
+Patch0: pygments25.patch
BuildRequires: %{python_module Pygments}
BuildRequires: %{python_module bleach >= 3.0.0}
BuildRequires: %{python_module check-manifest}
@@ -43,7 +43,6 @@ Requires: python-docutils >= 0.13.1
Requires: python-six
Recommends: python-cmarkgfm >= 0.2.0
BuildArch: noarch
-
%python_subpackages
%description
@@ -53,6 +52,7 @@ long_description for packages.
%prep
%setup -q -n readme_renderer-%{version}
+%patch0 -p1
%build
%python_build
@@ -63,9 +63,7 @@ long_description for packages.
%check
export LANG=en_US.UTF-8
-%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
-py.test-%{$python_bin_suffix}
-}
+%pytest
%files %{python_files}
%license LICENSE