nixpkgs/pkgs/servers/monitoring/alerta/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
893 B
Nix
Raw Normal View History

{ lib
, python3
, fetchPypi
2018-11-08 21:31:42 +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
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
};
propagatedBuildInputs = with python3.pkgs; [
bcrypt
blinker
2022-10-10 19:51:23 +00:00
cryptography
flask
flask-compress
flask-cors
mohawk
psycopg2
pyjwt
pymongo
2022-04-23 11:12:11 +00:00
pyparsing
python-dateutil
pytz
pyyaml
requests
requests-hawk
sentry-sdk
setuptools
];
2018-11-08 21:31:42 +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
meta = with lib; {
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
};
}