1 |
commit: 34304d85abbd61039df891e530c2b1873074a165 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 1 10:37:08 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 1 10:55:32 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34304d85 |
7 |
|
8 |
dev-python/pyscreenshot: update EAPI 7 -> 8, pep517, enable py3.11 |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
11 |
|
12 |
dev-python/pyscreenshot/pyscreenshot-3.0-r1.ebuild | 42 ++++++++++++++++++++++ |
13 |
1 file changed, 42 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/pyscreenshot/pyscreenshot-3.0-r1.ebuild b/dev-python/pyscreenshot/pyscreenshot-3.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..673bf65d8b11 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/pyscreenshot/pyscreenshot-3.0-r1.ebuild |
20 |
@@ -0,0 +1,42 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python3_{8..11} ) |
27 |
+DISTUTILS_USE_PEP517=setuptools |
28 |
+inherit distutils-r1 virtualx |
29 |
+ |
30 |
+DESCRIPTION="Python screenshot library" |
31 |
+HOMEPAGE="https://github.com/ponty/pyscreenshot" |
32 |
+SRC_URI="https://github.com/ponty/pyscreenshot/archive/${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="BSD-2" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
37 |
+ |
38 |
+RDEPEND=" |
39 |
+ dev-python/easyprocess[${PYTHON_USEDEP}] |
40 |
+ dev-python/entrypoint2[${PYTHON_USEDEP}] |
41 |
+ dev-python/jeepney[${PYTHON_USEDEP}] |
42 |
+ dev-python/mss[${PYTHON_USEDEP}] |
43 |
+" |
44 |
+ |
45 |
+BDEPEND=" |
46 |
+ test? ( |
47 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
48 |
+ dev-python/python-xlib[${PYTHON_USEDEP}] |
49 |
+ dev-python/pyvirtualdisplay[${PYTHON_USEDEP}] |
50 |
+ media-gfx/imagemagick |
51 |
+ media-gfx/pqiv |
52 |
+ x11-apps/xdpyinfo |
53 |
+ ) |
54 |
+" |
55 |
+ |
56 |
+distutils_enable_tests pytest |
57 |
+ |
58 |
+python_test() { |
59 |
+ # skip GNOME/KDE tests that require D-BUS |
60 |
+ local -x XDG_CURRENT_DESKTOP=none |
61 |
+ virtx epytest --deselect tests/test_check.py::test_speedtest |
62 |
+} |