summaryrefslogtreecommitdiff
path: root/dev-python/system_hotkey/system_hotkey-1.0.3.ebuild
blob: b90882ee336316a927f40ca718be603c71154b29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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_{9,10,11,12,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
}