2020-03-20 15:39:15 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
|
2018-08-02 15:39:57 +01:00
|
|
|
, django, django_tagging, whisper, pycairo, cairocffi, ldap, memcached, pytz, urllib3, scandir
|
|
|
|
}:
|
2020-03-20 15:39:15 +00:00
|
|
|
buildPythonPackage rec {
|
2018-08-02 15:39:57 +01:00
|
|
|
pname = "graphite-web";
|
2019-11-19 14:35:35 +00:00
|
|
|
version = "1.1.6";
|
2018-08-02 15:39:57 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-19 14:35:35 +00:00
|
|
|
sha256 = "f4c293008ad588456397cd125cdad7f47f4bab5b6dd82b5fb69f5467e7346a2a";
|
2018-08-02 15:39:57 +01:00
|
|
|
};
|
|
|
|
|
2020-03-20 15:39:15 +00:00
|
|
|
patches = [
|
|
|
|
./update-django-tagging.patch
|
|
|
|
];
|
|
|
|
|
2018-08-02 15:39:57 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
django django_tagging whisper pycairo cairocffi
|
|
|
|
ldap memcached pytz urllib3 scandir
|
|
|
|
];
|
|
|
|
|
2020-03-20 15:39:15 +00:00
|
|
|
# Carbon-s default installation is /opt/graphite. This env variable ensures
|
|
|
|
# carbon is installed as a regular python module.
|
|
|
|
GRAPHITE_NO_PREFIX="True";
|
2018-08-02 15:39:57 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace webapp/graphite/settings.py \
|
|
|
|
--replace "join(WEBAPP_DIR, 'content')" "join('$out', 'webapp', 'content')"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-03-20 15:39:15 +00:00
|
|
|
homepage = "http://graphiteapp.org/";
|
2018-08-02 15:39:57 +01:00
|
|
|
description = "Enterprise scalable realtime graphing";
|
2019-08-20 14:24:01 +01:00
|
|
|
maintainers = with maintainers; [ offline basvandijk ];
|
2018-08-02 15:39:57 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|