guru/dev-python/system_hotkey/system_hotkey-1.0.3.ebuild
Devrin Talen 4a203f22c2
dev-python/system_hotkey: disable py3.8, py3.9
- Fixed broken test
  - Added virtualx eclass to test with a valid display
  - Added patch to fix Python compatibility issue
- Added missing dependencies to RDEPEND
- Added missing PYTHON_USEDEP to RDEPEND

Signed-off-by: Devrin Talen <devrin@fastmail.com>
2024-09-13 15:52:29 -04:00

34 lines
806 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 virtualx
DESCRIPTION="Multi-platform system-wide hotkeys"
HOMEPAGE="https://github.com/timeyyy/system_hotkey"
SRC_URI="https://github.com/timeyyy/system_hotkey/archive/refs/tags/${PV}.tar.gz
-> ${P}.gh.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
# TODO this depends on xpybutil
RDEPEND=">=dev-python/xcffib-1.5.0[${PYTHON_USEDEP}]
>=dev-python/xpybutil-0.0.6[${PYTHON_USEDEP}]
>=dev-python/pytest-xvfb-3.0.0[${PYTHON_USEDEP}]"
PATCHES=(
# Fix for unit test
"${FILESDIR}/${P}-fix-collections-iterable.patch"
)
distutils_enable_tests pytest
src_test() {
virtx distutils-r1_src_test
}