2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, pyyaml
|
2018-11-08 21:31:42 +00:00
|
|
|
, python-dateutil, requests, pymongo, raven, bcrypt, flask, pyjwt, flask-cors, psycopg2, pytz, flask-compress, jinja2
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "alerta-server";
|
2020-07-31 09:56:35 +01:00
|
|
|
version = "7.5.6";
|
2018-11-08 21:31:42 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-31 09:56:35 +01:00
|
|
|
sha256 = "507abdb64c8b83c8ff0c21e39b03a21ccd7884ca3ce31afacea2d97e4d39f2e8";
|
2018-11-08 21:31:42 +00:00
|
|
|
};
|
|
|
|
|
2019-02-17 11:49:07 +00:00
|
|
|
propagatedBuildInputs = [ python-dateutil requests pymongo raven bcrypt flask pyjwt flask-cors psycopg2 pytz flask-compress jinja2 pyyaml];
|
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";
|
|
|
|
|
2018-11-08 21:31:42 +00:00
|
|
|
meta = with stdenv.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;
|
|
|
|
};
|
|
|
|
}
|