58f8944c92
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
29 lines
933 B
Nix
29 lines
933 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, pyyaml
|
|
, python-dateutil, requests, pymongo, raven, bcrypt, flask, pyjwt, flask-cors, psycopg2, pytz, flask-compress, jinja2
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "alerta-server";
|
|
version = "8.0.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "894d240c51428225264867a80094b9743d71272635a18ddfefa5832b61fed2c6";
|
|
};
|
|
|
|
propagatedBuildInputs = [ python-dateutil requests pymongo raven bcrypt flask pyjwt flask-cors psycopg2 pytz flask-compress jinja2 pyyaml];
|
|
|
|
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"
|
|
'';
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://alerta.io";
|
|
description = "Alerta Monitoring System server";
|
|
license = licenses.asl20;
|
|
};
|
|
}
|