Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ad6632902283
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1ac07c82e18d
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Nov 8, 2018

  1. alerta: init at 6.3.2

    svanderburg committed Nov 8, 2018
    Copy the full SHA
    1ac07c8 View commit details
Showing with 58 additions and 0 deletions.
  1. +27 −0 pkgs/development/python-modules/alerta-server/default.nix
  2. +27 −0 pkgs/development/python-modules/alerta/default.nix
  3. +4 −0 pkgs/top-level/python-packages.nix
27 changes: 27 additions & 0 deletions pkgs/development/python-modules/alerta-server/default.nix
Original file line number Diff line number Diff line change
@@ -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 changes: 27 additions & 0 deletions pkgs/development/python-modules/alerta/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -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 { };