3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/alerta/default.nix
2020-08-04 21:54:40 +02:00

30 lines
679 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, six, click, requests, pytz, tabulate, pythonOlder
}:
buildPythonPackage rec {
pname = "alerta";
version = "7.5.7";
src = fetchPypi {
inherit pname version;
sha256 = "849966c05e9899ac72af23991e9f17271c42bba89035c49d257a9dd96b54695b";
};
propagatedBuildInputs = [ six click requests pytz tabulate ];
doCheck = false;
postInstall = ''
wrapProgram $out/bin/alerta --prefix PYTHONPATH : "$PYTHONPATH"
'';
disabled = pythonOlder "3.5";
meta = with stdenv.lib; {
homepage = "https://alerta.io";
description = "Alerta Monitoring System command-line interface";
license = licenses.asl20;
};
}