commit:     a86cb1b75a1a47b2d9b840be9f86202559b26531
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 12 13:14:40 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Mar 12 13:18:35 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a86cb1b7

dev-python/pyscreenshot: Bump to 3.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pyscreenshot/Manifest                |  1 +
 dev-python/pyscreenshot/pyscreenshot-3.1.ebuild | 58 +++++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/dev-python/pyscreenshot/Manifest b/dev-python/pyscreenshot/Manifest
index bb0442ae459b..4d03f8566f03 100644
--- a/dev-python/pyscreenshot/Manifest
+++ b/dev-python/pyscreenshot/Manifest
@@ -1 +1,2 @@
 DIST pyscreenshot-3.0.tar.gz 32865 BLAKE2B 
b39d338be4f1dc23fc30fe84a6f8ee6b6346761b023222438e8ff33e01beafc347d34118332efb053057c54383f5468e73049041889a6140a70c0f928c655661
 SHA512 
f8070941ade2bc710157238f47c9575df1504ef63152980b2bc0edd1f69c9ca4aeec3f738929de1c81a51fed79838053674626981ec61d95dafa7b9998004606
+DIST pyscreenshot-3.1.gh.tar.gz 36860 BLAKE2B 
fff930ad784da3e800d7c85bba2ea03db8f91011083b437f31c0d62037df9fa8921f9572d2271c258bdafa5d4c0b9d3ff93a7b8ab53db2cc24373f971fb6dc54
 SHA512 
9cbb58ddf2248548fb8b3519b41646e6f00d635ddaac69cc20a41b57e8693466c2b93947d72cf3a0caa0ee20f9d42f70587079a919b1c1d156212d6f942285ee

diff --git a/dev-python/pyscreenshot/pyscreenshot-3.1.ebuild 
b/dev-python/pyscreenshot/pyscreenshot-3.1.ebuild
new file mode 100644
index 000000000000..47b82756e769
--- /dev/null
+++ b/dev-python/pyscreenshot/pyscreenshot-3.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1 virtualx
+
+DESCRIPTION="Python screenshot library"
+HOMEPAGE="
+       https://github.com/ponty/pyscreenshot/
+       https://pypi.org/project/pyscreenshot/
+"
+SRC_URI="
+       https://github.com/ponty/pyscreenshot/archive/${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+
+RDEPEND="
+       dev-python/easyprocess[${PYTHON_USEDEP}]
+       dev-python/entrypoint2[${PYTHON_USEDEP}]
+       dev-python/jeepney[${PYTHON_USEDEP}]
+       dev-python/mss[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+       test? (
+               dev-python/pillow[${PYTHON_USEDEP}]
+               dev-python/python-xlib[${PYTHON_USEDEP}]
+               dev-python/pyvirtualdisplay[${PYTHON_USEDEP}]
+               media-gfx/imagemagick
+               media-gfx/pqiv
+               x11-apps/xdpyinfo
+       )
+"
+
+distutils_enable_tests pytest
+
+src_test() {
+       virtx distutils-r1_src_test
+}
+
+python_test() {
+       local EPYTEST_DESELECT=(
+               tests/test_check.py::test_speedtest
+       )
+
+       # skip GNOME/KDE tests that require D-BUS
+       local -x XDG_CURRENT_DESKTOP=none
+       # nonfatal is already implied by virtx, make it explicit though
+       nonfatal epytest || die "Tests failed with ${EPYTHON}"
+}

Reply via email to