1{ stdenv, buildPythonPackage, fetchPypi
2, jinja2, markupsafe, pagerduty, pushbullet, python_magic, python-simple-hipchat
3, pyyaml, redis, requests, six, websocket_client, nose
4}:
5buildPythonPackage rec {
6 pname = "graphitepager";
7 version = "0.2.11";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "0v3g1qcgnkpgjzh6phnv13lnk8qjrcs9sq2qg6k0dk5ik31jfk3d";
12 };
13
14 propagatedBuildInputs = [
15 jinja2 markupsafe pagerduty pushbullet python_magic python-simple-hipchat
16 pyyaml redis requests six websocket_client
17 ];
18
19 postPatch = ''
20 substituteInPlace requirements.txt --replace "==" ">="
21 '';
22
23 checkInputs = [ nose ];
24 checkPhase = "nosetests";
25
26 meta = with stdenv.lib; {
27 description = "A simple alerting application for Graphite metrics";
28 homepage = https://github.com/seatgeek/graphite-pager;
29 maintainers = with maintainers; [ offline basvandijk ];
30 license = licenses.bsd2;
31 };
32}