2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2020-09-25 04:45:31 +00:00
|
|
|
, tornado_5, pyyaml, funcparserlib
|
|
|
|
, nixosTests
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "graphite_beacon";
|
|
|
|
version = "0.27.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "03bp4wyfn3xhcqyvs5hnk1n87m4smsmm1p7qp459m7j8hwpbq2ks";
|
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
propagatedBuildInputs = [ tornado_5 pyyaml funcparserlib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt --replace "==" ">="
|
|
|
|
'';
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
pythonImportsCheck = [ "graphite_beacon" ];
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
nixos = nixosTests.graphite;
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A simple alerting application for Graphite metrics";
|
|
|
|
homepage = "https://github.com/klen/graphite-beacon";
|
|
|
|
maintainers = [ maintainers.offline ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|