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

View File

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

View File

@ -3724,7 +3724,7 @@ in {
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 { };