commit:     562166a794d5d866966a364a2c4122240b15343f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 29 12:27:48 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Nov 29 12:45:07 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=562166a7

dev-python/pydot: Remove a broken test case

Closes: https://bugs.gentoo.org/831996
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pydot/pydot-1.4.2-r4.ebuild | 30 ++++++++++++++++++++++--------
 1 file changed, 22 insertions(+), 8 deletions(-)

diff --git a/dev-python/pydot/pydot-1.4.2-r4.ebuild 
b/dev-python/pydot/pydot-1.4.2-r4.ebuild
index 4a612a3dc5e4..17ee12d24ddf 100644
--- a/dev-python/pydot/pydot-1.4.2-r4.ebuild
+++ b/dev-python/pydot/pydot-1.4.2-r4.ebuild
@@ -3,14 +3,20 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{10..12} )
 DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
 inherit distutils-r1
 
 DESCRIPTION="Python interface to Graphviz's Dot language"
-HOMEPAGE="https://github.com/pydot/pydot https://pypi.org/project/pydot/";
+HOMEPAGE="
+       https://github.com/pydot/pydot/
+       https://pypi.org/project/pydot/
+"
 # pypi releases don't include tests
-SRC_URI="https://github.com/pydot/pydot/archive/v${PV}.tar.gz -> 
${P}.gh.tar.gz"
+SRC_URI="
+       https://github.com/pydot/pydot/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz
+"
 
 LICENSE="MIT"
 SLOT="0"
@@ -20,16 +26,24 @@ RESTRICT="!test? ( test )"
 
 RDEPEND="
        dev-python/pyparsing[${PYTHON_USEDEP}]
-       media-gfx/graphviz"
+       media-gfx/graphviz
+"
 BDEPEND="
        test? (
                ${RDEPEND}
                dev-python/chardet[${PYTHON_USEDEP}]
-       )"
+       )
+"
 
-PATCHES=(
-       "${FILESDIR}"/${PN}-1.4.2-pyparsing-3.patch
-)
+src_prepare() {
+       local PATCHES=(
+               "${FILESDIR}"/${PN}-1.4.2-pyparsing-3.patch
+       )
+
+       # broken
+       rm test/my_tests/html_labels.dot || die
+       distutils-r1_src_prepare
+}
 
 python_test() {
        cd test || die

Reply via email to