summaryrefslogtreecommitdiff
path: root/app-emulation/glean/glean-1.24.0.ebuild
blob: 355a90a0346e22052a8fd57317a3cdce2eb8bde1 (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
38
39
40
41
42
43
44
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

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

inherit edo distutils-r1 pypi udev

DESCRIPTION="Simple program to write static config from config-drive"
HOMEPAGE="https://opendev.org/opendev/glean"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 x86"

RDEPEND="dev-python/pbr[${PYTHON_USEDEP}]"
BDEPEND="${RDEPEND}
	test? (
		>=dev-python/oslotest-1.1.0[${PYTHON_USEDEP}]
		>=dev-python/testscenarios-0.5.0[${PYTHON_USEDEP}]
		>=dev-python/testtools-2.3.0[${PYTHON_USEDEP}]
	)
"

PATCHES=(
	"${FILESDIR}"/${PN}-1.24.0-support-gentoo-install.patch
)

distutils_enable_tests unittest

python_install_all() {
	distutils-r1_python_install_all
	edo "${EPYTHON}" "${S}/glean/install.py"
}

pkg_postinst() {
	udev_reload
}

pkg_postrm() {
	udev_reload
}