1{ lib, buildPythonPackage, fetchPypi, isPy3k 2, influxdb, graphite_api, memcached 3}: 4 5buildPythonPackage rec { 6 pname = "influxgraph"; 7 version = "1.5.0"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "0l33sfwdh4bfprmzp2kx0d9098g6yxbnhyyx9qr3kzczpm0jg9vy"; 12 }; 13 14 patchPhase = lib.optionalString isPy3k '' 15 sed 's/python-memcached/python3-memcached/' \ 16 -i ./influxgraph.egg-info/requires.txt \ 17 -i ./setup.py 18 ''; 19 20 propagatedBuildInputs = [ influxdb graphite_api memcached ]; 21 22 passthru.moduleName = "influxgraph.InfluxDBFinder"; 23 24 meta = with lib; { 25 description = "InfluxDB storage plugin for Graphite-API"; 26 homepage = "https://github.com/InfluxGraph/influxgraph"; 27 license = licenses.asl20; 28 maintainers = with maintainers; [ basvandijk ]; 29 }; 30}