2019-06-16 21:59:06 +02:00
|
|
|
{ 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";
|
2020-06-06 08:46:56 +02:00
|
|
|
version = "7.5.1";
|
2018-11-08 22:31:42 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 08:46:56 +02:00
|
|
|
sha256 = "e903d4b097d4650983faecedc4e2dffd27a962b671643098f8425f9a19884d0f";
|
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; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://alerta.io";
|
2018-11-08 22:31:42 +01:00
|
|
|
description = "Alerta Monitoring System command-line interface";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|