1{ lib, buildPythonPackage, fetchPypi 2, tornado_5, pyyaml, funcparserlib 3, nixosTests 4}: 5 6buildPythonPackage rec { 7 pname = "graphite_beacon"; 8 version = "0.27.0"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "03bp4wyfn3xhcqyvs5hnk1n87m4smsmm1p7qp459m7j8hwpbq2ks"; 13 }; 14 15 propagatedBuildInputs = [ tornado_5 pyyaml funcparserlib ]; 16 17 postPatch = '' 18 substituteInPlace requirements.txt --replace "==" ">=" 19 ''; 20 21 pythonImportsCheck = [ "graphite_beacon" ]; 22 23 passthru.tests = { 24 nixos = nixosTests.graphite; 25 }; 26 27 meta = with lib; { 28 description = "A simple alerting application for Graphite metrics"; 29 homepage = "https://github.com/klen/graphite-beacon"; 30 maintainers = [ maintainers.offline ]; 31 license = licenses.mit; 32 }; 33}