2017-05-26 16:08:32 +03:00
|
|
|
{ fetchFromGitHub, lib, python2Packages }:
|
|
|
|
let
|
|
|
|
pythonPackages = python2Packages;
|
|
|
|
|
|
|
|
in pythonPackages.buildPythonApplication rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "zabbix-cli";
|
2019-08-06 14:24:54 +03:00
|
|
|
version = "2.1.1";
|
2017-05-26 16:08:32 +03:00
|
|
|
|
2017-08-07 18:02:38 +03:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ ipaddr requests ];
|
|
|
|
|
|
|
|
# argparse is part of the standardlib
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace setup.py --replace "'argparse'," ""
|
|
|
|
'';
|
2017-05-26 16:08:32 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "usit-gd";
|
|
|
|
repo = "zabbix-cli";
|
|
|
|
rev = version;
|
2019-08-06 14:24:54 +03:00
|
|
|
sha256 = "10a1cvjqwlqqfz52ajv9i53h6v95w8y7xmgqr79q2c4v1nz5bfks";
|
2017-05-26 16:08:32 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command-line interface for Zabbix";
|
|
|
|
homepage = src.meta.homepage;
|
|
|
|
license = [ licenses.gpl3 ];
|
|
|
|
maintainers = [ maintainers.womfoo ];
|
|
|
|
};
|
|
|
|
}
|