mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 14:07:27 -08:00
40 lines
880 B
Bash
40 lines
880 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
|
|
PYTHON_REQ_USE="ncurses"
|
|
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="A flexible Python Kconfig implementation"
|
|
HOMEPAGE="
|
|
https://github.com/ulfalizer/Kconfiglib/
|
|
https://pypi.org/project/kconfiglib/
|
|
"
|
|
SRC_URI="
|
|
https://github.com/ulfalizer/Kconfiglib/archive/v${PV}.tar.gz
|
|
-> ${P^}.gh.tar.gz
|
|
"
|
|
S=${WORKDIR}/${P^}
|
|
|
|
LICENSE="ISC"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
python_prepare_all() {
|
|
distutils-r1_python_prepare_all
|
|
|
|
# hacks to run tests
|
|
mkdir Kconfiglib || die
|
|
ln -s ../tests Kconfiglib || die
|
|
# don't run kernel Kconfig compat tests
|
|
sed -e 's/run_compatibility_tests()$/#\0/' -i testsuite.py || die
|
|
}
|
|
|
|
python_test() {
|
|
"${EPYTHON}" testsuite.py || die "tests failed with ${EPYTHON}"
|
|
}
|