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