3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/alerta-server/default.nix
2021-01-25 18:31:47 +01:00

46 lines
1 KiB
Nix

{ lib, buildPythonPackage, fetchPypi, pythonOlder
, bcrypt, blinker, flask, flask-compress, flask-cors, mohawk, psycopg2, pyjwt, pymongo, python-dateutil, pytz, pyyaml, requests, requests-hawk, sentry-sdk
}:
buildPythonPackage rec {
pname = "alerta-server";
version = "8.3.3";
src = fetchPypi {
inherit pname version;
sha256 = "a2713a31c6e326c774a3ee0328f424f944b951935ff1b893a4a66598d61c5a97";
};
propagatedBuildInputs = [
bcrypt
blinker
flask
flask-compress
flask-cors
mohawk
psycopg2
pyjwt
pymongo
python-dateutil
pytz
pyyaml
requests
requests-hawk
sentry-sdk
];
doCheck = false; # We can't run the tests from Nix, because they rely on the presence of a working MongoDB server
postInstall = ''
wrapProgram $out/bin/alertad --prefix PYTHONPATH : "$PYTHONPATH"
'';
disabled = pythonOlder "3.5";
meta = with lib; {
homepage = "https://alerta.io";
description = "Alerta Monitoring System server";
license = licenses.asl20;
};
}