summary refs log tree commit diff
path: root/pkgs/development/python-modules/graphitepager/default.nix
blob: d2ab8d547fdbadf4a07cb60fd2182a692b8f44a7 (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
28
29
30
31
32
{ stdenv, buildPythonPackage, fetchPypi
, jinja2, markupsafe, pagerduty, pushbullet, python_magic, python-simple-hipchat
, pyyaml, redis, requests, six, websocket_client, nose
}:
buildPythonPackage rec {
  pname = "graphitepager";
  version = "0.2.11";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0v3g1qcgnkpgjzh6phnv13lnk8qjrcs9sq2qg6k0dk5ik31jfk3d";
  };

  propagatedBuildInputs = [
    jinja2 markupsafe pagerduty pushbullet python_magic python-simple-hipchat
    pyyaml redis requests six websocket_client
  ];

  postPatch = ''
    substituteInPlace requirements.txt --replace "==" ">="
  '';

  checkInputs = [ nose ];
  checkPhase = "nosetests";

  meta = with stdenv.lib; {
    description = "A simple alerting application for Graphite metrics";
    homepage = https://github.com/seatgeek/graphite-pager;
    maintainers = with maintainers; [ offline basvandijk ];
    license = licenses.bsd2;
  };
}