nixpkgs/pkgs/tools/misc/zabbix-cli/default.nix

30 lines
737 B
Nix
Raw Normal View History

2017-05-26 14:08:32 +01:00
{ fetchFromGitHub, lib, python2Packages }:
let
pythonPackages = python2Packages;
in pythonPackages.buildPythonApplication rec {
name = "zabbix-cli-${version}";
2017-08-07 16:02:38 +01:00
version = "1.7.0";
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;
2017-08-07 16:02:38 +01:00
sha256 = "0z33mv8xk0h72rn0iz1qrrkyz63w6cln8d5hqqddcvkxwnq0z6kx";
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 ];
};
}