2021-02-06 10:36:59 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
2023-05-25 16:06:38 +00:00
|
|
|
, fetchPypi
|
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";
|
2023-10-05 19:41:40 +00:00
|
|
|
version = "9.0.1";
|
2018-11-08 21:31:42 +00:00
|
|
|
|
2023-05-25 16:06:38 +00:00
|
|
|
src = fetchPypi {
|
2018-11-08 21:31:42 +00:00
|
|
|
inherit pname version;
|
2023-10-05 19:41:40 +00:00
|
|
|
sha256 = "sha256-v4+0l5Sx9RTxmNFnKCoKrWFl1xu1JIRZ/kiI6zi/y0I=";
|
2018-11-08 21:31:42 +00:00
|
|
|
};
|
|
|
|
|
2021-02-06 10:36:59 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2020-10-06 05:32:29 +00:00
|
|
|
bcrypt
|
|
|
|
blinker
|
2022-10-10 19:51:23 +00:00
|
|
|
cryptography
|
2020-10-06 05:32:29 +00:00
|
|
|
flask
|
|
|
|
flask-compress
|
|
|
|
flask-cors
|
|
|
|
mohawk
|
|
|
|
psycopg2
|
|
|
|
pyjwt
|
|
|
|
pymongo
|
2022-04-23 11:12:11 +00:00
|
|
|
pyparsing
|
2020-10-06 05:32:29 +00:00
|
|
|
python-dateutil
|
|
|
|
pytz
|
2020-11-19 13:50:11 +00:00
|
|
|
pyyaml
|
2020-10-06 05:32:29 +00:00
|
|
|
requests
|
|
|
|
requests-hawk
|
|
|
|
sentry-sdk
|
2023-09-21 20:23:13 +00:00
|
|
|
setuptools
|
2020-10-06 05:32:29 +00:00
|
|
|
];
|
2018-11-08 21:31:42 +00:00
|
|
|
|
2023-05-25 16:06:38 +00:00
|
|
|
# We can't run the tests from Nix, because they rely on the presence of a working MongoDB server
|
2022-04-23 11:12:11 +00:00
|
|
|
doCheck = false;
|
2018-11-08 21:31:42 +00:00
|
|
|
|
2022-04-23 11:12:11 +00: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 01:11:51 +00:00
|
|
|
homepage = "https://alerta.io";
|
2018-11-08 21:31:42 +00:00
|
|
|
description = "Alerta Monitoring System server";
|
|
|
|
license = licenses.asl20;
|
2022-04-23 11:12:11 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-11-08 21:31:42 +00:00
|
|
|
};
|
|
|
|
}
|