summaryrefslogtreecommitdiff
path: root/dev-python/pyscreenshot
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-09-16 09:32:48 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-09-16 09:32:48 +0100
commit9ee6d97c2883d42f204a533a8bc1f4562df778fb (patch)
treeb690ddc0ca30f1472887edbb0b8313629bfcbbb2 /dev-python/pyscreenshot
parentb17a3ef12038de50228bade1f05502c74e135321 (diff)
gentoo resync : 16.09.2020
Diffstat (limited to 'dev-python/pyscreenshot')
-rw-r--r--dev-python/pyscreenshot/Manifest3
-rw-r--r--dev-python/pyscreenshot/metadata.xml12
-rw-r--r--dev-python/pyscreenshot/pyscreenshot-2.2.ebuild73
3 files changed, 88 insertions, 0 deletions
diff --git a/dev-python/pyscreenshot/Manifest b/dev-python/pyscreenshot/Manifest
new file mode 100644
index 000000000000..3c1236922b63
--- /dev/null
+++ b/dev-python/pyscreenshot/Manifest
@@ -0,0 +1,3 @@
+DIST pyscreenshot-2.2.tar.gz 29726 BLAKE2B d1e314be360d4716b35b4302de82010dfc9a97212b3f4472b42e40f9470fd0575fe8f0ceb976adfe13059c0566413414e03f78189d4afa193d88a0aaf4c5c26e SHA512 6689ccbcd5c6164aeb12d911ee93c8958f6c6b5aaba5ba7d4073ee855e6398180ed27fce6299480b18b3d7ffad12cd17694c3db1f1c7373d4b25be0073d49338
+EBUILD pyscreenshot-2.2.ebuild 1620 BLAKE2B 3cf0f0b73638a3e0ced1433fafca358868970f9d78a65ca39a20ffc6bba1a5d355b71fd011aba1cbf03b4412a4e58090f72611aec60b41600dc4f4921576c9c4 SHA512 f7a7f320a8772ef9b6606ba482bb2fb6bc64dc7651b247763eab6d4172b960e1128e0ab4bdb04649c7751e9814a50ca02e81da76a856fbd2b42afafe3999fafb
+MISC metadata.xml 375 BLAKE2B 393138e315b4eae4dacb9339fbb5766e9dbaa84b7482babaddc08d524fb8b9939f6622ee9c6d09b66c61ac270fcc483fac39996a12ba87ccccf7cafd4c6d36db SHA512 9a44b6b9de4d1a61d6af9256519473541d5513cef349c15178c025dee3aaaa3f6772b1be56576411a985fcd9c70029c00743d8f577be8eaec4c5a44646c9cbf6
diff --git a/dev-python/pyscreenshot/metadata.xml b/dev-python/pyscreenshot/metadata.xml
new file mode 100644
index 000000000000..d22e99d73577
--- /dev/null
+++ b/dev-python/pyscreenshot/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>andrewammerlaan@riseup.net</email>
+ <name>Andrew Ammerlaan</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-python/pyscreenshot/pyscreenshot-2.2.ebuild b/dev-python/pyscreenshot/pyscreenshot-2.2.ebuild
new file mode 100644
index 000000000000..d4e41d5057b3
--- /dev/null
+++ b/dev-python/pyscreenshot/pyscreenshot-2.2.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2020 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/path-py[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]
+ dev-python/python-xlib[${PYTHON_USEDEP}]
+ dev-python/pyvirtualdisplay[${PYTHON_USEDEP}]
+ media-gfx/pqiv
+)"
+
+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() {
+ # easyprocess.EasyProcessError: start error fails inside emerge env
+ sed -i -e 's:test_default:_&:' \
+ tests/test_default.py || die
+
+ # AssertionError
+ sed -i -e 's:test_imagemagick:_&:' \
+ tests/test_imagemagick.py || die
+
+ # Needs access to dbus
+ sed -i -e 's:test_kwin_dbus:_&:' \
+ tests/test_kwin_dbus.py || die
+
+ # AssertionError
+ sed -i -e 's:test_mss:_&:' \
+ tests/test_mss.py || die
+
+ # AssertionError
+ sed -i -e 's:test_pygdk3:_&:' \
+ tests/test_pygdk3.py || die
+
+ # AssertionError
+ sed -i -e 's:test_pyqt5:_&:' \
+ tests/test_pyqt5.py || die
+
+ # AssertionError
+ sed -i -e 's:test_qtpy:_&:' \
+ tests/test_qtpy.py || die
+
+ # AssertionError
+ sed -i -e 's:test_scrot:_&:' \
+ tests/test_scrot.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ virtx pytest -vv
+}