glances: move from python-module to application

This commit is contained in:
Jonathan Ringer 2020-02-27 08:23:32 -08:00 committed by Jon
parent a0a724938e
commit cad99590a2
4 changed files with 17 additions and 12 deletions

View File

@ -1,13 +1,12 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, fetchpatch, isPyPy, lib { stdenv, buildPythonApplication, fetchFromGitHub, fetchpatch, isPyPy, lib
, psutil, setuptools, bottle, batinfo, pysnmp , future, psutil, setuptools
, hddtemp, future
# Optional dependencies: # Optional dependencies:
, bottle, batinfo, pysnmp
, hddtemp
, netifaces # IP module , netifaces # IP module
# Tests:
, unittest2
}: }:
buildPythonPackage rec { buildPythonApplication rec {
pname = "glances"; pname = "glances";
version = "3.1.3"; version = "3.1.3";
disabled = isPyPy; disabled = isPyPy;
@ -44,13 +43,18 @@ buildPythonPackage rec {
]; ];
doCheck = true; doCheck = true;
checkInputs = [ unittest2 ];
preCheck = lib.optional stdenv.isDarwin '' preCheck = lib.optional stdenv.isDarwin ''
export DYLD_FRAMEWORK_PATH=/System/Library/Frameworks export DYLD_FRAMEWORK_PATH=/System/Library/Frameworks
''; '';
propagatedBuildInputs = [ psutil setuptools bottle batinfo pysnmp future propagatedBuildInputs = [
batinfo
bottle
future
netifaces netifaces
psutil
pysnmp
setuptools
] ++ lib.optional stdenv.isLinux hddtemp; ] ++ lib.optional stdenv.isLinux hddtemp;
preConfigure = '' preConfigure = ''
@ -58,10 +62,9 @@ buildPythonPackage rec {
''; '';
meta = with lib; { meta = with lib; {
homepage = https://nicolargo.github.io/glances/; homepage = "https://nicolargo.github.io/glances/";
description = "Cross-platform curses-based monitoring tool"; description = "Cross-platform curses-based monitoring tool";
license = licenses.lgpl3; license = licenses.lgpl3;
maintainers = with maintainers; [ primeos koral ]; maintainers = with maintainers; [ jonringer primeos koral ];
platforms = platforms.linux ++ platforms.darwin;
}; };
} }

View File

@ -929,6 +929,8 @@ in
gjs = callPackage ../development/libraries/gjs { }; gjs = callPackage ../development/libraries/gjs { };
glances = python3Packages.callPackage ../applications/system/glances { };
glasgow = with python3Packages; toPythonApplication glasgow; glasgow = with python3Packages; toPythonApplication glasgow;
gucci = callPackage ../tools/text/gucci { }; gucci = callPackage ../tools/text/gucci { };

View File

@ -3724,7 +3724,7 @@ in {
git-sweep = callPackage ../development/python-modules/git-sweep { }; git-sweep = callPackage ../development/python-modules/git-sweep { };
glances = callPackage ../development/python-modules/glances { }; glances = throw "glances has moved to pkgs.glances"; # added 2020-20-28
github3_py = callPackage ../development/python-modules/github3_py { }; github3_py = callPackage ../development/python-modules/github3_py { };