2022-06-26 10:26:21 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2021-04-26 19:14:03 +00:00
|
|
|
, buildPythonPackage
|
2022-06-26 10:26:21 +00:00
|
|
|
, cairocffi
|
2021-04-05 15:23:46 +00:00
|
|
|
, django
|
|
|
|
, django_tagging
|
2022-06-26 10:26:21 +00:00
|
|
|
, fetchPypi
|
2021-04-05 15:23:46 +00:00
|
|
|
, gunicorn
|
|
|
|
, pyparsing
|
2022-06-26 10:26:21 +00:00
|
|
|
, python-memcached
|
|
|
|
, pythonOlder
|
|
|
|
, pytz
|
|
|
|
, six
|
|
|
|
, txamqp
|
|
|
|
, urllib3
|
2021-04-05 15:23:46 +00:00
|
|
|
, whisper
|
|
|
|
, whitenoise
|
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";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "1.1.10";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-26 10:26:21 +00:00
|
|
|
hash = "sha256-Pxho1QWo2jJZYAMJx999bbELDVMr7Wp7wsssYPkc01o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-06-26 10:26:21 +00:00
|
|
|
cairocffi
|
2021-04-05 15:23:46 +00:00
|
|
|
django
|
|
|
|
django_tagging
|
|
|
|
gunicorn
|
|
|
|
pyparsing
|
2022-06-26 10:26:21 +00:00
|
|
|
python-memcached
|
|
|
|
pytz
|
|
|
|
six
|
|
|
|
txamqp
|
|
|
|
urllib3
|
2021-04-05 15:23:46 +00:00
|
|
|
whisper
|
|
|
|
whitenoise
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "Django>=1.8,<3.1" "Django" \
|
|
|
|
--replace "django-tagging==0.4.3" "django-tagging"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# Carbon-s default installation is /opt/graphite. This env variable ensures
|
2022-06-26 10:26:21 +00:00
|
|
|
# carbon is installed as a regular Python module.
|
|
|
|
GRAPHITE_NO_PREFIX = "True";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace webapp/graphite/settings.py \
|
|
|
|
--replace "join(WEBAPP_DIR, 'content')" "join('$out', 'webapp', 'content')"
|
|
|
|
'';
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"graphite"
|
|
|
|
];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
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
|
|
|
description = "Enterprise scalable realtime graphing";
|
2022-06-26 10:26:21 +00:00
|
|
|
homepage = "http://graphiteapp.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2022-06-26 10:26:21 +00:00
|
|
|
maintainers = with maintainers; [ offline basvandijk ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|