3 buildPythonApplication,
13 # Optional dependencies:
18 netifaces, # IP module
24 buildPythonApplication rec {
31 src = fetchFromGitHub {
35 hash = "sha256-8Jm6DE3B7OQkaNwX/KwXMNZHUyvPtln8mJYaD6yzJRM=";
38 build-system = [ setuptools ];
40 # On Darwin this package segfaults due to mismatch of pure and impure
41 # CoreFoundation. This issues was solved for binaries but for interpreted
42 # scripts a workaround below is still required.
43 # Relevant: https://github.com/NixOS/nixpkgs/issues/24693
44 makeWrapperArgs = lib.optionals stdenv.hostPlatform.isDarwin [
47 "/System/Library/Frameworks"
50 # some tests fail in darwin sandbox
51 doCheck = !stdenv.hostPlatform.isDarwin;
56 python unittest-core.py
72 ] ++ lib.optional stdenv.hostPlatform.isLinux hddtemp;
75 service = nixosTests.glances;
79 homepage = "https://nicolargo.github.io/glances/";
80 description = "Cross-platform curses-based monitoring tool";
81 mainProgram = "glances";
82 changelog = "https://github.com/nicolargo/glances/blob/v${version}/NEWS.rst";
83 license = lib.licenses.lgpl3Only;
84 maintainers = with lib.maintainers; [