1{ lib
2, stdenv
3, python3Packages
4, fetchPypi
5, nix-update-script
6, s-tui
7, testers
8}:
9
10python3Packages.buildPythonPackage rec {
11 pname = "s-tui";
12 version = "1.1.4";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "sha256-soVrmzlVy0zrqvOclR7SfPphp4xAEHv+xdr0NN19ye0=";
17 };
18
19 propagatedBuildInputs = with python3Packages; [
20 urwid
21 psutil
22 ];
23
24 passthru = {
25 updateScript = nix-update-script { };
26 tests = testers.testVersion { package = s-tui; };
27 };
28
29 meta = with lib; {
30 homepage = "https://amanusk.github.io/s-tui/";
31 description = "Stress-Terminal UI monitoring tool";
32 license = licenses.gpl2;
33 maintainers = with maintainers; [ infinisil ];
34 broken = stdenv.isDarwin; # https://github.com/amanusk/s-tui/issues/49
35 };
36}