nixpkgs/pkgs/tools/misc/zabbix-cli/default.nix
R. RyanTM 7cf29d0119 zabbix-cli: 2.0.1 -> 2.1.1
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/zabbix-cli/versions
2019-08-06 04:24:54 -07:00

30 lines
737 B
Nix

{ fetchFromGitHub, lib, python2Packages }:
let
pythonPackages = python2Packages;
in pythonPackages.buildPythonApplication rec {
name = "zabbix-cli-${version}";
version = "2.1.1";
propagatedBuildInputs = with pythonPackages; [ ipaddr requests ];
# argparse is part of the standardlib
prePatch = ''
substituteInPlace setup.py --replace "'argparse'," ""
'';
src = fetchFromGitHub {
owner = "usit-gd";
repo = "zabbix-cli";
rev = version;
sha256 = "10a1cvjqwlqqfz52ajv9i53h6v95w8y7xmgqr79q2c4v1nz5bfks";
};
meta = with lib; {
description = "Command-line interface for Zabbix";
homepage = src.meta.homepage;
license = [ licenses.gpl3 ];
maintainers = [ maintainers.womfoo ];
};
}