2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2021-04-26 19:14:03 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-04-05 15:23:46 +00:00
|
|
|
, django
|
2022-05-18 14:49:53 +00:00
|
|
|
, python-memcached
|
2021-04-05 15:23:46 +00:00
|
|
|
, txamqp
|
|
|
|
, django_tagging
|
|
|
|
, gunicorn
|
|
|
|
, pytz
|
|
|
|
, pyparsing
|
|
|
|
, cairocffi
|
|
|
|
, whisper
|
|
|
|
, whitenoise
|
|
|
|
, urllib3
|
|
|
|
, six
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "graphite-web";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.1.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "54240b0f1e069b53e2ce92d4e534e21b195fb0ebd64b6ad8a49c44284e3eb0b1";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./update-django-tagging.patch
|
|
|
|
];
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
postPatch = ''
|
|
|
|
# https://github.com/graphite-project/graphite-web/pull/2701
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "'scandir'" "'scandir; python_version < \"3.5\"'"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-04-05 15:23:46 +00:00
|
|
|
django
|
2022-05-18 14:49:53 +00:00
|
|
|
python-memcached
|
2021-04-05 15:23:46 +00:00
|
|
|
txamqp
|
|
|
|
django_tagging
|
|
|
|
gunicorn
|
|
|
|
pytz
|
|
|
|
pyparsing
|
|
|
|
cairocffi
|
|
|
|
whisper
|
|
|
|
whitenoise
|
|
|
|
urllib3
|
|
|
|
six
|
2020-04-24 23:36:52 +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";
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace webapp/graphite/settings.py \
|
|
|
|
--replace "join(WEBAPP_DIR, 'content')" "join('$out', 'webapp', 'content')"
|
|
|
|
'';
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
pythonImportsCheck = [ "graphite" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://graphiteapp.org/";
|
|
|
|
description = "Enterprise scalable realtime graphing";
|
|
|
|
maintainers = with maintainers; [ offline basvandijk ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|