2021-02-06 10:36:59 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
2018-11-08 21:31:42 +00:00
|
|
|
}:
|
|
|
|
|
2021-02-06 10:36:59 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2018-11-08 21:31:42 +00:00
|
|
|
pname = "alerta-server";
|
2022-04-23 15:19:36 +01:00
|
|
|
version = "8.7.0";
|
2018-11-08 21:31:42 +00:00
|
|
|
|
2021-02-06 10:36:59 +00:00
|
|
|
src = python3.pkgs.fetchPypi {
|
2018-11-08 21:31:42 +00:00
|
|
|
inherit pname version;
|
2022-04-23 15:19:36 +01:00
|
|
|
sha256 = "sha256-EM3owmj+6gFjU0ARaQP3FLYXliGaGCRSaLgkiPwhGdU=";
|
2018-11-08 21:31:42 +00:00
|
|
|
};
|
|
|
|
|
2021-02-06 10:36:59 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2020-10-06 06:32:29 +01:00
|
|
|
bcrypt
|
|
|
|
blinker
|
2022-10-10 20:51:23 +01:00
|
|
|
cryptography
|
2020-10-06 06:32:29 +01:00
|
|
|
flask
|
|
|
|
flask-compress
|
|
|
|
flask-cors
|
|
|
|
mohawk
|
|
|
|
psycopg2
|
|
|
|
pyjwt
|
|
|
|
pymongo
|
2022-04-23 12:12:11 +01:00
|
|
|
pyparsing
|
2020-10-06 06:32:29 +01:00
|
|
|
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
|
|
|
|
2022-04-23 12:12:11 +01:00
|
|
|
# We can't run the tests from Nix, because they rely on the presence of a working MongoDB server
|
|
|
|
doCheck = false;
|
2018-11-08 21:31:42 +00:00
|
|
|
|
2022-04-23 12:12:11 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"alerta"
|
|
|
|
];
|
2019-02-17 11:49:07 +00:00
|
|
|
|
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;
|
2022-04-23 12:12:11 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-11-08 21:31:42 +00:00
|
|
|
};
|
|
|
|
}
|