3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/alerta-server/default.nix

30 lines
944 B
Nix
Raw Normal View History

2019-02-17 11:49:07 +00:00
{ stdenv, buildPythonPackage, fetchPypi, makeWrapper, pythonOlder, pyyaml
2018-11-08 21:31:42 +00:00
, python-dateutil, requests, pymongo, raven, bcrypt, flask, pyjwt, flask-cors, psycopg2, pytz, flask-compress, jinja2
}:
buildPythonPackage rec {
pname = "alerta-server";
2019-02-23 14:36:00 +00:00
version = "6.7.5";
2018-11-08 21:31:42 +00:00
src = fetchPypi {
inherit pname version;
2019-02-23 14:36:00 +00:00
sha256 = "e8dc3428248a5b20c4fe8da76c2d353b715d515bd4879928c499671d4360a90f";
2018-11-08 21:31:42 +00:00
};
2019-02-17 11:49:07 +00:00
propagatedBuildInputs = [ python-dateutil requests pymongo raven bcrypt flask pyjwt flask-cors psycopg2 pytz flask-compress jinja2 pyyaml];
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;
description = "Alerta Monitoring System server";
license = licenses.asl20;
};
}