2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
2020-04-24 23:36:52 +00:00
|
|
|
, influxdb, graphite_api, memcached
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "influxgraph";
|
|
|
|
version = "1.5.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0l33sfwdh4bfprmzp2kx0d9098g6yxbnhyyx9qr3kzczpm0jg9vy";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
patchPhase = lib.optionalString isPy3k ''
|
2020-04-24 23:36:52 +00:00
|
|
|
sed 's/python-memcached/python3-memcached/' \
|
|
|
|
-i ./influxgraph.egg-info/requires.txt \
|
|
|
|
-i ./setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ influxdb graphite_api memcached ];
|
|
|
|
|
|
|
|
passthru.moduleName = "influxgraph.InfluxDBFinder";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "InfluxDB storage plugin for Graphite-API";
|
|
|
|
homepage = "https://github.com/InfluxGraph/influxgraph";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ basvandijk ];
|
|
|
|
};
|
|
|
|
}
|