app-admin/s-tui: 1.2.0, revbump, runtime fix

Comment out the failing import, it's not used anyway.

Bug: https://github.com/amanusk/s-tui/issues/246
Signed-off-by: Joe Kappus <joe@wt.gd>
This commit is contained in:
Joe Kappus
2025-12-10 02:16:52 -05:00
parent 2a43b15be8
commit 3beeddd119
2 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/s_tui/s_tui.py b/s_tui/s_tui.py
index e39e6d9..c104e8f 100755
--- a/s_tui/s_tui.py
+++ b/s_tui/s_tui.py
@@ -36,7 +36,7 @@ import sys
import psutil
import urwid
-import urwid.curses_display
+#import urwid.curses_display
try:
import configparser

View File

@@ -0,0 +1,36 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 optfeature
DESCRIPTION="Stress-Terminal UI monitoring tool"
HOMEPAGE="https://amanusk.github.io/s-tui/"
PATCHES=( "${FILESDIR}/${P}-dropimport.patch" )
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/amanusk/${PN}.git"
EGIT_SUBMODULES=()
else
SRC_URI="https://github.com/amanusk/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="GPL-2"
SLOT="0"
RDEPEND="
>=dev-python/psutil-7.0.0[${PYTHON_USEDEP}]
>=dev-python/urwid-3.0.2[${PYTHON_USEDEP}]
"
distutils_enable_tests unittest
pkg_postinst() {
optfeature "Stress options in program menu" app-benchmarks/stress app-benchmarks/stress-ng
}