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