···
25
+
writableTmpDirAsHomeHook,
23
-
buildPythonPackage rec {
32
+
buildPythonPackage {
26
-
format = "setuptools";
28
-
disabled = pythonOlder "3.7";
34
+
version = "1.1.10-unstable-2025-02-24";
owner = "graphite-project";
34
-
hash = "sha256-2HgCBKwLfxJLKMopoIdsEW5k/j3kNAiifWDnJ98a7Qo=";
39
+
repo = "graphite-web";
40
+
rev = "49c28e2015d605ad9ec93524f7076dd924a4731a";
41
+
hash = "sha256-TxsQPhnI5WhQvKKkDEYZ8xnyg/qf+N9Icej6d6A0jC0=";
39
-
name = "CVE-2022-4730.CVE-2022-4729.CVE-2022-4728.part-1.patch";
40
-
url = "https://github.com/graphite-project/graphite-web/commit/9c626006eea36a9fd785e8f811359aebc9774970.patch";
41
-
hash = "sha256-JMmdhLqsaRhUG2FsH+yPNl+cR7O2YLfKFliL2GU0aAk=";
44
-
name = "CVE-2022-4730.CVE-2022-4729.CVE-2022-4728.part-2.patch";
45
-
url = "https://github.com/graphite-project/graphite-web/commit/2f178f490e10efc03cd1d27c72f64ecab224eb23.patch";
46
-
hash = "sha256-NL7K5uekf3NlLa58aFFRPJT9ktjqBeNlWC4Htd0fRQ0=";
46
+
substituteInPlace webapp/graphite/settings.py \
48
+
"join(WEBAPP_DIR, 'content')" \
49
+
"join('$out/webapp', 'content')"
51
+
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
52
+
substituteInPlace webapp/tests/test_dashboard.py \
53
+
--replace-fail "test_dashboard_email" "_dont_test_dashboard_email"
54
+
substituteInPlace webapp/tests/test_render.py \
55
+
--replace-fail "test_render_view" "_dont_test_render_view"
50
-
propagatedBuildInputs = [
···
65
-
substituteInPlace setup.py \
66
-
--replace "Django>=1.8,<3.1" "Django" \
67
-
--replace "django-tagging==0.4.3" "django-tagging"
70
-
# Carbon-s default installation is /opt/graphite. This env variable ensures
71
-
# carbon is installed as a regular Python module.
72
-
GRAPHITE_NO_PREFIX = "True";
78
+
# Carbon-s default installation is /opt/graphite. This env variable ensures
79
+
# carbon is installed as a regular Python module.
80
+
GRAPHITE_NO_PREFIX = "True";
75
-
substituteInPlace webapp/graphite/settings.py \
76
-
--replace "join(WEBAPP_DIR, 'content')" "join('$out', 'webapp', 'content')"
82
+
REDIS_HOST = "127.0.0.1";
79
-
checkInputs = [ mock ];
85
+
nativeCheckInputs = [
89
+
writableTmpDirAsHomeHook
93
+
# Start a redis server
95
+
${pkgs.valkey}/bin/redis-server &
# avoid confusion with installed module
86
-
# redis not practical in test environment
87
-
substituteInPlace tests/test_tags.py \
88
-
--replace test_redis_tagdb _dont_test_redis_tagdb
DJANGO_SETTINGS_MODULE=tests.settings ${python.interpreter} manage.py test
···
116
+
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "graphite" ];
inherit (nixosTests) graphite;
description = "Enterprise scalable realtime graphing";
homepage = "http://graphiteapp.org/";
105
-
license = licenses.asl20;
106
-
maintainers = with maintainers; [
127
+
license = lib.licenses.asl20;
128
+
maintainers = with lib.maintainers; [