diff options
author | Andrew Ammerlaan <andrewammerlaan@riseup.net> | 2021-01-25 20:31:17 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-03-11 09:17:23 +0200 |
commit | 1abc7b11f32e691ee1579a4b3b0f611c1b65969d (patch) | |
tree | 58f0283861d18f063b5cc1dc227ea17b62efc74e /dev-python/pyscreenshot | |
parent | dev-python/pyspelling: add version 2.7.1 (diff) | |
download | gentoo-1abc7b11f32e691ee1579a4b3b0f611c1b65969d.tar.gz gentoo-1abc7b11f32e691ee1579a4b3b0f611c1b65969d.tar.bz2 gentoo-1abc7b11f32e691ee1579a4b3b0f611c1b65969d.zip |
dev-python/pyscreenshot: add version 2.3
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/pyscreenshot')
-rw-r--r-- | dev-python/pyscreenshot/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pyscreenshot/pyscreenshot-2.3.ebuild | 47 |
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/pyscreenshot/Manifest b/dev-python/pyscreenshot/Manifest index a2135f891233..da0d2432badd 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 000000000000..04cec4abf98f --- /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 +} |