nixpkgs/pkgs/development/python-modules/alerta-server/default.nix

46 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi, pythonOlder
, bcrypt, blinker, flask, flask-compress, flask-cors, mohawk, psycopg2, pyjwt, pymongo, python-dateutil, pytz, pyyaml, requests, requests-hawk, sentry-sdk
2018-11-08 21:31:42 +00:00
}:
buildPythonPackage rec {
pname = "alerta-server";
2020-08-16 17:30:49 +00:00
version = "8.0.3";
2018-11-08 21:31:42 +00:00
src = fetchPypi {
inherit pname version;
2020-08-16 17:30:49 +00:00
sha256 = "894d240c51428225264867a80094b9743d71272635a18ddfefa5832b61fed2c6";
2018-11-08 21:31:42 +00:00
};
propagatedBuildInputs = [
bcrypt
blinker
flask
flask-compress
flask-cors
mohawk
psycopg2
pyjwt
pymongo
python-dateutil
pytz
pyyaml
requests
requests-hawk
sentry-sdk
];
2018-11-08 21:31:42 +00:00
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"
'';
2019-02-17 11:49:07 +00:00
disabled = pythonOlder "3.5";
2018-11-08 21:31:42 +00:00
meta = with stdenv.lib; {
homepage = "https://alerta.io";
2018-11-08 21:31:42 +00:00
description = "Alerta Monitoring System server";
license = licenses.asl20;
};
}