python3Packages.graphite_beacon: fix deps, add nixos test
This commit is contained in:
parent
feda1d67d2
commit
2003495474
|
@ -1,6 +1,8 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi
|
{ stdenv, buildPythonPackage, fetchPypi
|
||||||
, tornado, pyyaml, funcparserlib
|
, tornado_5, pyyaml, funcparserlib
|
||||||
|
, nixosTests
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "graphite_beacon";
|
pname = "graphite_beacon";
|
||||||
version = "0.27.0";
|
version = "0.27.0";
|
||||||
|
@ -10,12 +12,18 @@ buildPythonPackage rec {
|
||||||
sha256 = "03bp4wyfn3xhcqyvs5hnk1n87m4smsmm1p7qp459m7j8hwpbq2ks";
|
sha256 = "03bp4wyfn3xhcqyvs5hnk1n87m4smsmm1p7qp459m7j8hwpbq2ks";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ tornado pyyaml funcparserlib ];
|
propagatedBuildInputs = [ tornado_5 pyyaml funcparserlib ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace requirements.txt --replace "==" ">="
|
substituteInPlace requirements.txt --replace "==" ">="
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "graphite_beacon" ];
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
nixos = nixosTests.graphite;
|
||||||
|
};
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A simple alerting application for Graphite metrics";
|
description = "A simple alerting application for Graphite metrics";
|
||||||
homepage = "https://github.com/klen/graphite-beacon";
|
homepage = "https://github.com/klen/graphite-beacon";
|
||||||
|
|
Loading…
Reference in New Issue