1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00
nixpkgs/pkgs/development/python-modules/alerta-server/default.nix
2019-02-17 14:40:57 +01:00

30 lines
944 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, makeWrapper, pythonOlder, pyyaml
, python-dateutil, requests, pymongo, raven, bcrypt, flask, pyjwt, flask-cors, psycopg2, pytz, flask-compress, jinja2
}:
buildPythonPackage rec {
pname = "alerta-server";
version = "6.7.4";
src = fetchPypi {
inherit pname version;
sha256 = "5ca2783f6e9211fdebd433b9eae83fbcf75ed127dc87946257d101a7d7a465db";
};
propagatedBuildInputs = [ python-dateutil requests pymongo raven bcrypt flask pyjwt flask-cors psycopg2 pytz flask-compress jinja2 pyyaml];
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 stdenv.lib; {
homepage = https://alerta.io;
description = "Alerta Monitoring System server";
license = licenses.asl20;
};
}