2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
2019-06-16 20:59:06 +01:00
|
|
|
, influxdb, graphite_api, memcached
|
2018-08-02 15:39:57 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "influxgraph";
|
|
|
|
version = "1.5.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0l33sfwdh4bfprmzp2kx0d9098g6yxbnhyyx9qr3kzczpm0jg9vy";
|
|
|
|
};
|
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
patchPhase = lib.optionalString isPy3k ''
|
2018-08-02 15:39:57 +01: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-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-02 15:39:57 +01:00
|
|
|
description = "InfluxDB storage plugin for Graphite-API";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/InfluxGraph/influxgraph";
|
2018-08-02 15:39:57 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ basvandijk ];
|
|
|
|
};
|
|
|
|
}
|