diff --git a/dev-python/pygal/files/2.4.0-fix-tests.patch b/dev-python/pygal/files/2.4.0-fix-tests.patch new file mode 100644 index 0000000000000..6ae07df3427b7 --- /dev/null +++ b/dev-python/pygal/files/2.4.0-fix-tests.patch @@ -0,0 +1,17 @@ +diff --git a/pygal/test/conftest.py b/pygal/test/conftest.py +index ea36010..6fe40cb 100644 +--- a/pygal/test/conftest.py ++++ b/pygal/test/conftest.py +@@ -48,9 +48,9 @@ def pytest_generate_tests(metafunc): + if hasattr(sys, 'pypy_version_info'): + etree.to_etree() + +- if "Chart" in metafunc.funcargnames: ++ if "Chart" in metafunc.fixturenames: + metafunc.parametrize("Chart", pygal.CHARTS) +- if "datas" in metafunc.funcargnames: ++ if "datas" in metafunc.fixturenames: + metafunc.parametrize( + "datas", [[("Serie %d" % i, get_data(i)) for i in range(s)] + for s in (5, 1, 0)] +-- diff --git a/dev-python/pygal/pygal-2.4.0-r1.ebuild b/dev-python/pygal/pygal-2.4.0-r2.ebuild similarity index 90% rename from dev-python/pygal/pygal-2.4.0-r1.ebuild rename to dev-python/pygal/pygal-2.4.0-r2.ebuild index d99f0e5a873fd..b886f7767a650 100644 --- a/dev-python/pygal/pygal-2.4.0-r1.ebuild +++ b/dev-python/pygal/pygal-2.4.0-r2.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{7,8} ) +PYTHON_COMPAT=( python3_{7..9} ) PYTHON_REQ_USE="xml(+)" inherit distutils-r1 @@ -29,6 +29,8 @@ BDEPEND=" ) " +PATCHES=( "${FILESDIR}/${PV}-fix-tests.patch" ) + # CHANGELOG is a symlink to docs/changelog.rst DOCS=( docs/changelog.rst README.md )