2018-11-08 21:31:42 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, makeWrapper
|
|
|
|
, python-dateutil, requests, pymongo, raven, bcrypt, flask, pyjwt, flask-cors, psycopg2, pytz, flask-compress, jinja2
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "alerta-server";
|
2019-02-16 08:53:24 +00:00
|
|
|
version = "6.7.4";
|
2018-11-08 21:31:42 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-16 08:53:24 +00:00
|
|
|
sha256 = "5ca2783f6e9211fdebd433b9eae83fbcf75ed127dc87946257d101a7d7a465db";
|
2018-11-08 21:31:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ python-dateutil requests pymongo raven bcrypt flask pyjwt flask-cors psycopg2 pytz flask-compress jinja2 ];
|
|
|
|
|
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://alerta.io;
|
|
|
|
description = "Alerta Monitoring System server";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|