dev-python/pyscreenshot - 3.1 (gentoo)

Search

Package Information

Description:
Python screenshot library
Homepage:
https://github.com/ponty/pyscreenshot/ https://pypi.org/project/pyscreenshot/
License:
BSD-2

Ebuild Details

Version EAPI Keywords Slot
3.1 8 amd64 ~arm arm64 ~riscv x86 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{11..14} )
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[xcb,${PYTHON_USEDEP}]
		dev-python/pygame[${PYTHON_USEDEP}]
		dev-python/python-xlib[${PYTHON_USEDEP}]
		dev-python/pyvirtualdisplay[${PYTHON_USEDEP}]
		media-gfx/imagemagick
		media-gfx/pqiv
		media-gfx/scrot
		x11-apps/xdpyinfo
	)
"

EPYTEST_PLUGINS=()
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}"
}

Dependencies

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[xcb,${PYTHON_USEDEP}]
		dev-python/pygame[${PYTHON_USEDEP}]
		dev-python/python-xlib[${PYTHON_USEDEP}]
		dev-python/pyvirtualdisplay[${PYTHON_USEDEP}]
		media-gfx/imagemagick
		media-gfx/pqiv
		media-gfx/scrot
		x11-apps/xdpyinfo
	)

Manifest for 3.1

Type File Size Source URLs
DIST pyscreenshot-3.1.gh.tar.gz 36860 bytes https://github.com/ponty/pyscreenshot/archive/3.1.tar.gz