about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/influxgraph/default.nix
blob: 32374453375dbe72916eebcc8a4bd7ab85959b16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy3k
, influxdb, graphite_api, memcached
}:

buildPythonPackage rec {
  pname = "influxgraph";
  version = "1.5.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0l33sfwdh4bfprmzp2kx0d9098g6yxbnhyyx9qr3kzczpm0jg9vy";
  };

  patchPhase = lib.optionalString isPy3k ''
    sed 's/python-memcached/python3-memcached/' \
      -i ./influxgraph.egg-info/requires.txt    \
      -i ./setup.py
  '';

  propagatedBuildInputs = [ influxdb graphite_api memcached ];

  passthru.moduleName = "influxgraph.InfluxDBFinder";

  meta = with lib; {
    description = "InfluxDB storage plugin for Graphite-API";
    homepage = "https://github.com/InfluxGraph/influxgraph";
    license = licenses.asl20;
    maintainers = with maintainers; [ basvandijk ];
  };
}