2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "alerta-server";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "8.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
src = python3.pkgs.fetchPypi {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pname version;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-EM3owmj+6gFjU0ARaQP3FLYXliGaGCRSaLgkiPwhGdU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2020-10-07 09:15:18 +00:00
|
|
|
bcrypt
|
|
|
|
blinker
|
2022-10-21 18:38:19 +00:00
|
|
|
cryptography
|
2020-10-07 09:15:18 +00:00
|
|
|
flask
|
|
|
|
flask-compress
|
|
|
|
flask-cors
|
|
|
|
mohawk
|
|
|
|
psycopg2
|
|
|
|
pyjwt
|
|
|
|
pymongo
|
2022-04-27 09:35:20 +00:00
|
|
|
pyparsing
|
2020-10-07 09:15:18 +00:00
|
|
|
python-dateutil
|
|
|
|
pytz
|
2020-11-21 19:51:51 +00:00
|
|
|
pyyaml
|
2020-10-07 09:15:18 +00:00
|
|
|
requests
|
|
|
|
requests-hawk
|
|
|
|
sentry-sdk
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
# We can't run the tests from Nix, because they rely on the presence of a working MongoDB server
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"alerta"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://alerta.io";
|
|
|
|
description = "Alerta Monitoring System server";
|
|
|
|
license = licenses.asl20;
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|