2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2020-09-15 19:38:22 +02:00
|
|
|
, tornado_5, pyyaml, funcparserlib
|
|
|
|
, nixosTests
|
2018-08-02 16:39:57 +02:00
|
|
|
}:
|
2020-09-15 19:38:22 +02:00
|
|
|
|
2018-08-02 16:39:57 +02:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "graphite_beacon";
|
|
|
|
version = "0.27.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "03bp4wyfn3xhcqyvs5hnk1n87m4smsmm1p7qp459m7j8hwpbq2ks";
|
|
|
|
};
|
|
|
|
|
2020-09-15 19:38:22 +02:00
|
|
|
propagatedBuildInputs = [ tornado_5 pyyaml funcparserlib ];
|
2018-08-02 16:39:57 +02:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt --replace "==" ">="
|
|
|
|
'';
|
|
|
|
|
2020-09-15 19:38:22 +02:00
|
|
|
pythonImportsCheck = [ "graphite_beacon" ];
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
nixos = nixosTests.graphite;
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-08-02 16:39:57 +02:00
|
|
|
description = "A simple alerting application for Graphite metrics";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/klen/graphite-beacon";
|
2018-08-02 16:39:57 +02:00
|
|
|
maintainers = [ maintainers.offline ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|