nixpkgs/pkgs/development/python-modules/alerta/default.nix

30 lines
677 B
Nix
Raw Normal View History

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