···
-
buildPythonPackage rec {
-
disabled = pythonOlder "3.7";
owner = "graphite-project";
-
hash = "sha256-2HgCBKwLfxJLKMopoIdsEW5k/j3kNAiifWDnJ98a7Qo=";
-
name = "CVE-2022-4730.CVE-2022-4729.CVE-2022-4728.part-1.patch";
-
url = "https://github.com/graphite-project/graphite-web/commit/9c626006eea36a9fd785e8f811359aebc9774970.patch";
-
hash = "sha256-JMmdhLqsaRhUG2FsH+yPNl+cR7O2YLfKFliL2GU0aAk=";
-
name = "CVE-2022-4730.CVE-2022-4729.CVE-2022-4728.part-2.patch";
-
url = "https://github.com/graphite-project/graphite-web/commit/2f178f490e10efc03cd1d27c72f64ecab224eb23.patch";
-
hash = "sha256-NL7K5uekf3NlLa58aFFRPJT9ktjqBeNlWC4Htd0fRQ0=";
-
propagatedBuildInputs = [
···
-
substituteInPlace setup.py \
-
--replace "Django>=1.8,<3.1" "Django" \
-
--replace "django-tagging==0.4.3" "django-tagging"
-
# Carbon-s default installation is /opt/graphite. This env variable ensures
-
# carbon is installed as a regular Python module.
-
GRAPHITE_NO_PREFIX = "True";
-
substituteInPlace webapp/graphite/settings.py \
-
--replace "join(WEBAPP_DIR, 'content')" "join('$out', 'webapp', 'content')"
-
checkInputs = [ mock ];
# avoid confusion with installed module
-
# redis not practical in test environment
-
substituteInPlace tests/test_tags.py \
-
--replace test_redis_tagdb _dont_test_redis_tagdb
DJANGO_SETTINGS_MODULE=tests.settings ${python.interpreter} manage.py test
···
pythonImportsCheck = [ "graphite" ];
inherit (nixosTests) graphite;
description = "Enterprise scalable realtime graphing";
homepage = "http://graphiteapp.org/";
-
license = licenses.asl20;
-
maintainers = with maintainers; [
···
+
writableTmpDirAsHomeHook,
+
version = "1.1.10-unstable-2025-02-24";
owner = "graphite-project";
+
rev = "49c28e2015d605ad9ec93524f7076dd924a4731a";
+
hash = "sha256-TxsQPhnI5WhQvKKkDEYZ8xnyg/qf+N9Icej6d6A0jC0=";
+
substituteInPlace webapp/graphite/settings.py \
+
"join(WEBAPP_DIR, 'content')" \
+
"join('$out/webapp', 'content')"
+
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
+
substituteInPlace webapp/tests/test_dashboard.py \
+
--replace-fail "test_dashboard_email" "_dont_test_dashboard_email"
+
substituteInPlace webapp/tests/test_render.py \
+
--replace-fail "test_render_view" "_dont_test_render_view"
···
+
# Carbon-s default installation is /opt/graphite. This env variable ensures
+
# carbon is installed as a regular Python module.
+
GRAPHITE_NO_PREFIX = "True";
+
REDIS_HOST = "127.0.0.1";
+
writableTmpDirAsHomeHook
+
${pkgs.valkey}/bin/redis-server &
# avoid confusion with installed module
DJANGO_SETTINGS_MODULE=tests.settings ${python.interpreter} manage.py test
···
+
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "graphite" ];
inherit (nixosTests) graphite;
description = "Enterprise scalable realtime graphing";
homepage = "http://graphiteapp.org/";
+
license = lib.licenses.asl20;
+
maintainers = with lib.maintainers; [