summary refs log tree commit diff
path: root/pkgs/development/python-modules/alerta/default.nix
blob: 47125894e5b9d7958014cd8d3d8d1a9af0932cfe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
  };
}