2022-03-27 11:22:36 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, python3Packages
|
2023-05-25 16:03:52 +00:00
|
|
|
, fetchPypi
|
2022-03-27 11:22:36 +00:00
|
|
|
, nix-update-script
|
|
|
|
, s-tui
|
2022-04-20 14:40:48 +00:00
|
|
|
, testers
|
2022-03-27 11:22:36 +00:00
|
|
|
}:
|
2017-09-13 12:38:45 +00:00
|
|
|
|
s-tui: migrate to python3
Includes LC_ALL = "en_US.UTF-8"; that resolves a locale.Error exception
during the check phase.
[...]
File "/build/s-tui-1.0.0/s_tui/sensors_menu.py", line 27, in <module>
import urwid
File "/nix/store/xxhpq1kcjy0kimfwnwqlzh2pchkp9khi-python3.7-urwid-2.1.0/lib/python3.7/site-packages/urwid/__init__.py", line 26, in <module>
from urwid.widget import (FLOW, BOX, FIXED, LEFT, RIGHT, CENTER, TOP, MIDDLE,
File "/nix/store/xxhpq1kcjy0kimfwnwqlzh2pchkp9khi-python3.7-urwid-2.1.0/lib/python3.7/site-packages/urwid/widget.py", line 27, in <module>
from urwid.util import (MetaSuper, decompose_tagmarkup, calc_width,
File "/nix/store/xxhpq1kcjy0kimfwnwqlzh2pchkp9khi-python3.7-urwid-2.1.0/lib/python3.7/site-packages/urwid/util.py", line 61, in <module>
detected_encoding = detect_encoding()
File "/nix/store/xxhpq1kcjy0kimfwnwqlzh2pchkp9khi-python3.7-urwid-2.1.0/lib/python3.7/site-packages/urwid/util.py", line 58, in detect_encoding
locale.setlocale(locale.LC_ALL, initial)
File "/nix/store/ja04f3cmapzb3f2mvjrb883bfqclsirq-python3-3.7.6/lib/python3.7/locale.py", line 608, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
2020-02-20 13:00:51 +00:00
|
|
|
python3Packages.buildPythonPackage rec {
|
2017-09-13 12:38:45 +00:00
|
|
|
pname = "s-tui";
|
2024-01-31 14:47:16 +00:00
|
|
|
version = "1.1.6";
|
2017-09-13 12:38:45 +00:00
|
|
|
|
2023-05-25 16:03:52 +00:00
|
|
|
src = fetchPypi {
|
2017-09-13 12:38:45 +00:00
|
|
|
inherit pname version;
|
2024-01-31 14:47:16 +00:00
|
|
|
sha256 = "sha256-nSdpnM8ubodlPwmvdmNFTn9TsS8i7lWBZ2CifMHDe1c=";
|
2017-09-13 12:38:45 +00:00
|
|
|
};
|
|
|
|
|
s-tui: migrate to python3
Includes LC_ALL = "en_US.UTF-8"; that resolves a locale.Error exception
during the check phase.
[...]
File "/build/s-tui-1.0.0/s_tui/sensors_menu.py", line 27, in <module>
import urwid
File "/nix/store/xxhpq1kcjy0kimfwnwqlzh2pchkp9khi-python3.7-urwid-2.1.0/lib/python3.7/site-packages/urwid/__init__.py", line 26, in <module>
from urwid.widget import (FLOW, BOX, FIXED, LEFT, RIGHT, CENTER, TOP, MIDDLE,
File "/nix/store/xxhpq1kcjy0kimfwnwqlzh2pchkp9khi-python3.7-urwid-2.1.0/lib/python3.7/site-packages/urwid/widget.py", line 27, in <module>
from urwid.util import (MetaSuper, decompose_tagmarkup, calc_width,
File "/nix/store/xxhpq1kcjy0kimfwnwqlzh2pchkp9khi-python3.7-urwid-2.1.0/lib/python3.7/site-packages/urwid/util.py", line 61, in <module>
detected_encoding = detect_encoding()
File "/nix/store/xxhpq1kcjy0kimfwnwqlzh2pchkp9khi-python3.7-urwid-2.1.0/lib/python3.7/site-packages/urwid/util.py", line 58, in detect_encoding
locale.setlocale(locale.LC_ALL, initial)
File "/nix/store/ja04f3cmapzb3f2mvjrb883bfqclsirq-python3-3.7.6/lib/python3.7/locale.py", line 608, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
2020-02-20 13:00:51 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2017-09-13 12:38:45 +00:00
|
|
|
urwid
|
|
|
|
psutil
|
|
|
|
];
|
|
|
|
|
2022-03-27 11:22:36 +00:00
|
|
|
passthru = {
|
2022-12-25 22:11:14 +00:00
|
|
|
updateScript = nix-update-script { };
|
2022-04-20 14:40:48 +00:00
|
|
|
tests = testers.testVersion { package = s-tui; };
|
2022-03-27 11:22:36 +00:00
|
|
|
};
|
s-tui: migrate to python3
Includes LC_ALL = "en_US.UTF-8"; that resolves a locale.Error exception
during the check phase.
[...]
File "/build/s-tui-1.0.0/s_tui/sensors_menu.py", line 27, in <module>
import urwid
File "/nix/store/xxhpq1kcjy0kimfwnwqlzh2pchkp9khi-python3.7-urwid-2.1.0/lib/python3.7/site-packages/urwid/__init__.py", line 26, in <module>
from urwid.widget import (FLOW, BOX, FIXED, LEFT, RIGHT, CENTER, TOP, MIDDLE,
File "/nix/store/xxhpq1kcjy0kimfwnwqlzh2pchkp9khi-python3.7-urwid-2.1.0/lib/python3.7/site-packages/urwid/widget.py", line 27, in <module>
from urwid.util import (MetaSuper, decompose_tagmarkup, calc_width,
File "/nix/store/xxhpq1kcjy0kimfwnwqlzh2pchkp9khi-python3.7-urwid-2.1.0/lib/python3.7/site-packages/urwid/util.py", line 61, in <module>
detected_encoding = detect_encoding()
File "/nix/store/xxhpq1kcjy0kimfwnwqlzh2pchkp9khi-python3.7-urwid-2.1.0/lib/python3.7/site-packages/urwid/util.py", line 58, in detect_encoding
locale.setlocale(locale.LC_ALL, initial)
File "/nix/store/ja04f3cmapzb3f2mvjrb883bfqclsirq-python3-3.7.6/lib/python3.7/locale.py", line 608, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
2020-02-20 13:00:51 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://amanusk.github.io/s-tui/";
|
2017-12-05 22:20:11 +00:00
|
|
|
description = "Stress-Terminal UI monitoring tool";
|
2024-04-26 11:35:31 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2024-04-09 15:26:37 +00:00
|
|
|
maintainers = [ ];
|
2022-03-27 11:22:36 +00:00
|
|
|
broken = stdenv.isDarwin; # https://github.com/amanusk/s-tui/issues/49
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "s-tui";
|
2017-09-13 12:38:45 +00:00
|
|
|
};
|
|
|
|
}
|