mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 15:43:00 +00:00
alerta: init at 6.3.2
This commit is contained in:
parent
ad66329022
commit
1ac07c82e1
27
pkgs/development/python-modules/alerta-server/default.nix
Normal file
27
pkgs/development/python-modules/alerta-server/default.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, makeWrapper
|
||||
, python-dateutil, requests, pymongo, raven, bcrypt, flask, pyjwt, flask-cors, psycopg2, pytz, flask-compress, jinja2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "alerta-server";
|
||||
version = "6.3.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0mp97scdz2scdzi9va99hghmjz25zssgwg07i6cldzkc8j71kax5";
|
||||
};
|
||||
|
||||
buildInputs = [ python-dateutil requests pymongo raven bcrypt flask pyjwt flask-cors psycopg2 pytz flask-compress jinja2 ];
|
||||
|
||||
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"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://alerta.io;
|
||||
description = "Alerta Monitoring System server";
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
27
pkgs/development/python-modules/alerta/default.nix
Normal file
27
pkgs/development/python-modules/alerta/default.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, makeWrapper
|
||||
, six, click, requests, pytz, tabulate
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "alerta";
|
||||
version = "6.3.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "08l366g0arpd23bm7bzk0hpmfd3z6brb8p24rjwkb3gvafhk7cz9";
|
||||
};
|
||||
|
||||
buildInputs = [ six click requests pytz tabulate ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/alerta --prefix PYTHONPATH : "$PYTHONPATH"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://alerta.io;
|
||||
description = "Alerta Monitoring System command-line interface";
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
@ -166,6 +166,10 @@ in {
|
||||
|
||||
agate-dbf = callPackage ../development/python-modules/agate-dbf { };
|
||||
|
||||
alerta = callPackage ../development/python-modules/alerta { };
|
||||
|
||||
alerta-server = callPackage ../development/python-modules/alerta-server { };
|
||||
|
||||
phonenumbers = callPackage ../development/python-modules/phonenumbers { };
|
||||
|
||||
agate-excel = callPackage ../development/python-modules/agate-excel { };
|
||||
|
Loading…
Reference in New Issue
Block a user