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";
|
2020-05-09 11:01:49 +01:00
|
|
|
version = "1.1.7";
|
2018-08-02 15:39:57 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 11:01:49 +01:00
|
|
|
sha256 = "b3cb3b9affe1b9e3777aab046416b3d545390ceea4d35d55c753b1e4732eaad0";
|
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;
|
|
|
|
};
|
|
|
|
}
|