commit:     1abc7b11f32e691ee1579a4b3b0f611c1b65969d
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Mon Jan 25 19:31:17 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Mar 11 07:17:23 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1abc7b11

dev-python/pyscreenshot: add version 2.3

Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-python/pyscreenshot/Manifest                |  1 +
 dev-python/pyscreenshot/pyscreenshot-2.3.ebuild | 47 +++++++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git a/dev-python/pyscreenshot/Manifest b/dev-python/pyscreenshot/Manifest
index a2135f89123..da0d2432bad 100644
--- a/dev-python/pyscreenshot/Manifest
+++ b/dev-python/pyscreenshot/Manifest
@@ -1 +1,2 @@
 DIST pyscreenshot-2.2.tar.gz 29726 BLAKE2B 
d1e314be360d4716b35b4302de82010dfc9a97212b3f4472b42e40f9470fd0575fe8f0ceb976adfe13059c0566413414e03f78189d4afa193d88a0aaf4c5c26e
 SHA512 
6689ccbcd5c6164aeb12d911ee93c8958f6c6b5aaba5ba7d4073ee855e6398180ed27fce6299480b18b3d7ffad12cd17694c3db1f1c7373d4b25be0073d49338
+DIST pyscreenshot-2.3.tar.gz 34543 BLAKE2B 
a9ae6fc51ac62efabca7e9b4e08ee8ee05d778a3f8ea0bfaec5f0958bea7f6dd266e18a938350aac6fa1058fdb378cfa69cf6c5490768c39d7312be51e3d2630
 SHA512 
6919e4529a932b9a6e3dd28d60c628447b0e6f25df567db742b5bf14455373ad7340237bb4b77696c436be6f31211030b206d7152f4b61d16d6745f439f84425

diff --git a/dev-python/pyscreenshot/pyscreenshot-2.3.ebuild 
b/dev-python/pyscreenshot/pyscreenshot-2.3.ebuild
new file mode 100644
index 00000000000..04cec4abf98
--- /dev/null
+++ b/dev-python/pyscreenshot/pyscreenshot-2.3.ebuild
@@ -0,0 +1,47 @@
+# 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 virtualx
+
+DESCRIPTION="Python screenshot library"
+HOMEPAGE="https://github.com/ponty/pyscreenshot";
+SRC_URI="https://github.com/ponty/pyscreenshot/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="test? (
+       dev-python/pillow[${PYTHON_USEDEP}]
+       dev-python/python-xlib[${PYTHON_USEDEP}]
+       dev-python/pyvirtualdisplay[${PYTHON_USEDEP}]
+       media-gfx/imagemagick
+       media-gfx/pqiv
+       kde-apps/gwenview
+       x11-apps/xdpyinfo
+)"
+
+DEPEND="
+       dev-python/easyprocess[${PYTHON_USEDEP}]
+       dev-python/entrypoint2[${PYTHON_USEDEP}]
+       dev-python/jeepney[${PYTHON_USEDEP}]
+       dev-python/mss[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+       # Needs access to dbus
+       sed -i -e 's:test_kwin_dbus:_&:' \
+                       tests/test_kwin_dbus.py || die
+
+       distutils-r1_python_prepare_all
+}
+
+python_test() {
+       virtx pytest -vv
+}

Reply via email to