2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, pythonOlder
|
2020-10-06 06:32:29 +01:00
|
|
|
, bcrypt, blinker, flask, flask-compress, flask-cors, mohawk, psycopg2, pyjwt, pymongo, python-dateutil, pytz, pyyaml, requests, requests-hawk, sentry-sdk
|
2018-11-08 21:31:42 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "alerta-server";
|
2020-11-19 13:50:11 +00:00
|
|
|
version = "8.1.0";
|
2018-11-08 21:31:42 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-19 13:50:11 +00:00
|
|
|
sha256 = "32a97eee95aea5527f6efa844c18b727fe4a6d61356ea3c0769a29a163ddcb7e";
|
2018-11-08 21:31:42 +00:00
|
|
|
};
|
|
|
|
|
2020-10-06 06:32:29 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
bcrypt
|
|
|
|
blinker
|
|
|
|
flask
|
|
|
|
flask-compress
|
|
|
|
flask-cors
|
|
|
|
mohawk
|
|
|
|
psycopg2
|
|
|
|
pyjwt
|
|
|
|
pymongo
|
|
|
|
python-dateutil
|
|
|
|
pytz
|
2020-11-19 13:50:11 +00:00
|
|
|
pyyaml
|
2020-10-06 06:32:29 +01:00
|
|
|
requests
|
|
|
|
requests-hawk
|
|
|
|
sentry-sdk
|
|
|
|
];
|
2018-11-08 21:31:42 +00:00
|
|
|
|
|
|
|
doCheck = false; # We can't run the tests from Nix, because they rely on the presence of a working MongoDB server
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/alertad --prefix PYTHONPATH : "$PYTHONPATH"
|
|
|
|
'';
|
|
|
|
|
2019-02-17 11:49:07 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://alerta.io";
|
2018-11-08 21:31:42 +00:00
|
|
|
description = "Alerta Monitoring System server";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|