3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/alerta/default.nix

30 lines
677 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi
2019-02-17 11:48:56 +00:00
, six, click, requests, pytz, tabulate, pythonOlder
2018-11-08 21:31:42 +00:00
}:
buildPythonPackage rec {
pname = "alerta";
2019-02-14 07:37:09 +00:00
version = "6.5.0";
2018-11-08 21:31:42 +00:00
src = fetchPypi {
inherit pname version;
2019-02-14 07:37:09 +00:00
sha256 = "f9f0f8f800798fae83c05dd52dc2f06bd77fb318c784c4b44e3acfba81338881";
2018-11-08 21:31:42 +00:00
};
2019-02-17 11:48:56 +00:00
propagatedBuildInputs = [ six click requests pytz tabulate ];
2018-11-08 21:31:42 +00:00
doCheck = false;
postInstall = ''
wrapProgram $out/bin/alerta --prefix PYTHONPATH : "$PYTHONPATH"
'';
2019-02-17 11:48:56 +00:00
disabled = pythonOlder "3.5";
2018-11-08 21:31:42 +00:00
meta = with stdenv.lib; {
homepage = https://alerta.io;
description = "Alerta Monitoring System command-line interface";
license = licenses.asl20;
};
}