Skip to content

Commit

Permalink
python3Packages.graphite_beacon: fix deps, add nixos test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonringer committed Sep 15, 2020
1 parent feda1d6 commit 2003495
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions 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";
Expand All @@ -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";
Expand Down

0 comments on commit 2003495

Please sign in to comment.