summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>2021-01-25 20:23:51 +0100
committerJoonas Niilola <juippis@gentoo.org>2021-03-11 09:17:22 +0200
commitac4981378041df14ab924e7013c0f39b8674130d (patch)
treebb51c8938a7b33374d360dbb14bc700fff422b7c /dev-python/pyvirtualdisplay
parentdev-python/spyder-notebook: drop old (diff)
downloadgentoo-ac4981378041df14ab924e7013c0f39b8674130d.tar.gz
gentoo-ac4981378041df14ab924e7013c0f39b8674130d.tar.bz2
gentoo-ac4981378041df14ab924e7013c0f39b8674130d.zip
dev-python/pyvirtualdisplay: add version 2.0
Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python/pyvirtualdisplay')
-rw-r--r--dev-python/pyvirtualdisplay/Manifest1
-rw-r--r--dev-python/pyvirtualdisplay/pyvirtualdisplay-2.0.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/pyvirtualdisplay/Manifest b/dev-python/pyvirtualdisplay/Manifest
index e9f76ae58cd4..4033e96d5a5c 100644
--- a/dev-python/pyvirtualdisplay/Manifest
+++ b/dev-python/pyvirtualdisplay/Manifest
@@ -1,2 +1,3 @@
DIST PyVirtualDisplay-2.1.tar.gz 40798 BLAKE2B 315bb794b81948357919e98637b6276cca11739d019333c873a2b9c3d28d0bbece6996a70fe619f7acae658bcbaa2743dbbdfb23b7b8515c3a40858a83b07712 SHA512 f95a1622adfa1198d7f35757110e923e45bbfc18b31945c9efedb578e1a27fc91ffec403cc68269b2414837260b2b56ae9a58323ed5020af962757722d7a4517
DIST pyvirtualdisplay-1.3.2.tar.gz 38532 BLAKE2B 2c0cb3af426abc58dc895667c5fecb40ee9aa870dbb08a51ac32fbd5bd3620b97498b3dfc6e7026362604c82f67b60885370f0704a1349a65668628d9a21e80c SHA512 422e1530bb740fc77cc0b7abb73cb8e7326689c80c5f49b58be70b262e8a2c28274d3b83a0ec7753adfbf78b780047f61cf7b18fb14f935d483a5e3d04953210
+DIST pyvirtualdisplay-2.0.tar.gz 40480 BLAKE2B 8243f88a3878124aebf45624ab5712052e3ee9bdae77c150bdfcf109cd7528db8b47a7328aa9a149e8fdb3d8437e84076631adb539185a16a8e64ab97265a45e SHA512 bb5c789723c96d4f2952626c063f749c9f07045231af90d21ccda41697319a4d2f27db8c0f352fd273db114c0d5e65e8c6151b7f858b8ea4e19660a1e941514f
diff --git a/dev-python/pyvirtualdisplay/pyvirtualdisplay-2.0.ebuild b/dev-python/pyvirtualdisplay/pyvirtualdisplay-2.0.ebuild
new file mode 100644
index 000000000000..132a2cde78b6
--- /dev/null
+++ b/dev-python/pyvirtualdisplay/pyvirtualdisplay-2.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7,8} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python wrapper for Xvfb, Xephyr and Xvnc"
+HOMEPAGE="https://github.com/ponty/PyVirtualDisplay"
+SRC_URI="https://github.com/ponty/PyVirtualDisplay/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="test? (
+ dev-python/entrypoint2[${PYTHON_USEDEP}]
+ dev-python/pillow[xcb,${PYTHON_USEDEP}]
+ dev-python/psutil[${PYTHON_USEDEP}]
+ ~dev-python/vncdotool-0.13.0[${PYTHON_USEDEP}]
+ x11-base/xorg-server[xvfb,xephyr]
+ x11-misc/x11vnc
+)"
+
+DEPEND="dev-python/easyprocess[${PYTHON_USEDEP}]"
+
+S="${WORKDIR}/PyVirtualDisplay-${PV}"
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ # all of this fails: AssertionError
+ rm tests/test_examples.py || die
+
+ # Hangs forever
+ sed -i -e 's:test_race_100_xvfb:_&:' \
+ -e 's:test_race_100_xe:_&:' \
+ tests/test_race.py || die
+
+ # Hangs forever
+ sed -i -e 's:test_slowshot:_&:' \
+ -e 's:test_slowshot_with:_&:' \
+ tests/test_smart.py || die
+
+ # Hangs forever
+ sed -i -e 's:test_double:_&:' \
+ tests/test_smart2.py || die
+
+ # pyvirtualdisplay.smartdisplay.DisplayTimeoutError: Timeout! elapsed time:1.8 timeout:1
+ sed -i -e 's:test_smart:_&:' \
+ tests/test_smart_thread.py || die
+
+ distutils-r1_python_prepare_all
+}