summaryrefslogtreecommitdiff
path: root/dev-python/qemu-qmp/qemu-qmp-0.0.6.ebuild
blob: 3a68b4e7b5c610b7c31575e355c2c64498a8ff59 (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
34
35
36
37
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{13..14} )

inherit distutils-r1 optfeature pypi

DESCRIPTION="QEMU Monitor Protocol library"
HOMEPAGE="
	https://gitlab.com/qemu-project/python-qemu-qmp
	https://pypi.org/project/qemu.qmp/
"

LICENSE="GPL-2 LGPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~ppc64"

RDEPEND="!<app-emulation/qemu-11.1.2-r0[python]"
BDEPEND="
	dev-python/setuptools-scm[${PYTHON_USEDEP}]
	dev-python/wheel[${PYTHON_USEDEP}]
	test? (
		dev-python/pygments[${PYTHON_USEDEP}]
		dev-python/urwid-readline[${PYTHON_USEDEP}]
		dev-python/urwid[${PYTHON_USEDEP}]
	)
"

EPYTEST_PLUGINS=()
distutils_enable_tests pytest

pkg_postinst() {
	optfeature "Terminal User Interface support" "dev-python/pygments dev-python/urwid dev-python/urwid-readline"
}