mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-21 07:52:21 -04:00
- 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>
34 lines
806 B
Bash
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
|
|
}
|