commit:     2cb4c2edf312cd3df307fb4f3dd7e3f016accb8a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 23 01:36:41 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar 23 01:38:15 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cb4c2ed

dev-util/dogtail: PEP517

Also, silence bug #799053 by adding an explicit RESTRICT="test". A comment
already explains why.

Closes: https://bugs.gentoo.org/799053
Closes: https://bugs.gentoo.org/909977
Closes: https://bugs.gentoo.org/923765
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/dogtail/dogtail-0.9.11-r1.ebuild | 47 +++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/dev-util/dogtail/dogtail-0.9.11-r1.ebuild 
b/dev-util/dogtail/dogtail-0.9.11-r1.ebuild
new file mode 100644
index 000000000000..fa1c4f4c4a80
--- /dev/null
+++ b/dev-util/dogtail/dogtail-0.9.11-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1 xdg
+
+DESCRIPTION="GUI test tool and automation framework using accessibility 
framework"
+HOMEPAGE="https://gitlab.com/dogtail/dogtail";
+SRC_URI="https://gitlab.com/${PN}/${PN}/raw/released/${P}.tar.gz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE=""
+
+RDEPEND="
+       dev-libs/gobject-introspection
+       dev-python/pyatspi[${PYTHON_USEDEP}]
+       dev-python/pycairo[${PYTHON_USEDEP}]
+       dev-python/pygobject:3[${PYTHON_USEDEP}]
+       dev-python/pillow[${PYTHON_USEDEP}]
+       x11-libs/gdk-pixbuf:2[introspection]
+       x11-libs/gtk+:3[introspection]
+       x11-libs/libwnck:3[introspection]
+       x11-base/xorg-server[xvfb]
+       x11-apps/xinit
+"
+
+# Tests require org.gnome.desktop.interface toolkit-accessibility
+RESTRICT="test"
+#distutils_enable_tests nose
+
+src_prepare() {
+       # Install docs in one place
+       sed "s:doc/${PN}:doc/${PF}:" -i setup.py || die
+
+       # Upstream loads resources relative to __file__, which doesn't work with
+       # gentoo's dev-lang/python-exec. So we need to add hard-coded paths.
+       eapply "${FILESDIR}"/${PN}-0.9.10-gentoo-paths.patch
+       sed -e "s:@EPREFIX_USR@:'${EPREFIX}/usr':" -i sniff/sniff || die "sed 
failed"
+
+       distutils-r1_src_prepare
+}

Reply via email to