2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
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";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "9.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-v4+0l5Sx9RTxmNFnKCoKrWFl1xu1JIRZ/kiI6zi/y0I=";
|
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
|
2023-10-09 19:29:22 +00:00
|
|
|
setuptools
|
2020-10-07 09:15:18 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
# We can't run the tests from Nix, because they rely on the presence of a working MongoDB server
|
2022-04-27 09:35:20 +00:00
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "alertad";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|