diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2020-09-15 10:38:22 -0700 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-09-15 11:05:28 -0700 |
commit | 2003495474b512e377eafe379ed02d8c39d495cb (patch) | |
tree | 048771f751551491cef41716a9270417ccf2ad1f /pkgs/development/python-modules/graphite_beacon | |
parent | feda1d67d21a5b3976a8593453703b121f7040b9 (diff) |
python3Packages.graphite_beacon: fix deps, add nixos test
Diffstat (limited to 'pkgs/development/python-modules/graphite_beacon')
-rw-r--r-- | pkgs/development/python-modules/graphite_beacon/default.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/graphite_beacon/default.nix b/pkgs/development/python-modules/graphite_beacon/default.nix index 159b09d10b912..cc070f55323c2 100644 --- a/pkgs/development/python-modules/graphite_beacon/default.nix +++ b/pkgs/development/python-modules/graphite_beacon/default.nix @@ -1,6 +1,8 @@ { stdenv, buildPythonPackage, fetchPypi -, tornado, pyyaml, funcparserlib +, tornado_5, pyyaml, funcparserlib +, nixosTests }: + buildPythonPackage rec { pname = "graphite_beacon"; version = "0.27.0"; @@ -10,12 +12,18 @@ buildPythonPackage rec { sha256 = "03bp4wyfn3xhcqyvs5hnk1n87m4smsmm1p7qp459m7j8hwpbq2ks"; }; - propagatedBuildInputs = [ tornado pyyaml funcparserlib ]; + propagatedBuildInputs = [ tornado_5 pyyaml funcparserlib ]; postPatch = '' substituteInPlace requirements.txt --replace "==" ">=" ''; + pythonImportsCheck = [ "graphite_beacon" ]; + + passthru.tests = { + nixos = nixosTests.graphite; + }; + meta = with stdenv.lib; { description = "A simple alerting application for Graphite metrics"; homepage = "https://github.com/klen/graphite-beacon"; |