1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/alerta/default.nix

30 lines
708 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi
, six, click, requests, requests-hawk, pytz, tabulate, pythonOlder
2018-11-08 21:31:42 +00:00
}:
buildPythonPackage rec {
pname = "alerta";
version = "8.2.0";
2018-11-08 21:31:42 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "a689b2551655ffeb1fa0af2b652653c9355e4f612a3cb8265fcb53c47f83f7c0";
2018-11-08 21:31:42 +00:00
};
propagatedBuildInputs = [ six click requests requests-hawk 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";
2018-11-08 21:31:42 +00:00
description = "Alerta Monitoring System command-line interface";
license = licenses.asl20;
};
}