diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/graphitepager')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/graphitepager/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/graphitepager/default.nix b/nixpkgs/pkgs/development/python-modules/graphitepager/default.nix new file mode 100644 index 000000000000..d2ab8d547fdb --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/graphitepager/default.nix @@ -0,0 +1,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; + }; +} |