22 buildPythonPackage rec {
23 pname = "graphite-web";
25 format = "setuptools";
27 disabled = pythonOlder "3.7";
29 src = fetchFromGitHub {
30 owner = "graphite-project";
33 hash = "sha256-2HgCBKwLfxJLKMopoIdsEW5k/j3kNAiifWDnJ98a7Qo=";
38 name = "CVE-2022-4730.CVE-2022-4729.CVE-2022-4728.part-1.patch";
39 url = "https://github.com/graphite-project/graphite-web/commit/9c626006eea36a9fd785e8f811359aebc9774970.patch";
40 hash = "sha256-JMmdhLqsaRhUG2FsH+yPNl+cR7O2YLfKFliL2GU0aAk=";
43 name = "CVE-2022-4730.CVE-2022-4729.CVE-2022-4728.part-2.patch";
44 url = "https://github.com/graphite-project/graphite-web/commit/2f178f490e10efc03cd1d27c72f64ecab224eb23.patch";
45 hash = "sha256-NL7K5uekf3NlLa58aFFRPJT9ktjqBeNlWC4Htd0fRQ0=";
49 propagatedBuildInputs = [
64 substituteInPlace setup.py \
65 --replace "Django>=1.8,<3.1" "Django" \
66 --replace "django-tagging==0.4.3" "django-tagging"
69 # Carbon-s default installation is /opt/graphite. This env variable ensures
70 # carbon is installed as a regular Python module.
71 GRAPHITE_NO_PREFIX = "True";
74 substituteInPlace webapp/graphite/settings.py \
75 --replace "join(WEBAPP_DIR, 'content')" "join('$out', 'webapp', 'content')"
78 checkInputs = [ mock ];
83 # avoid confusion with installed module
85 # redis not practical in test environment
86 substituteInPlace tests/test_tags.py \
87 --replace test_redis_tagdb _dont_test_redis_tagdb
89 DJANGO_SETTINGS_MODULE=tests.settings ${python.interpreter} manage.py test
95 pythonImportsCheck = [
100 description = "Enterprise scalable realtime graphing";
101 homepage = "http://graphiteapp.org/";
102 license = licenses.asl20;
103 maintainers = with maintainers; [ offline basvandijk ];