1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00
nixpkgs/pkgs/tools/misc/zabbix-cli/default.nix

30 lines
727 B
Nix
Raw Normal View History

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