From 4572f3ec59d24d153f6da98945ba39e14f7fe62a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 15 Feb 2024 04:50:21 +0100 Subject: [PATCH] frigate: fix flask 3.0 compat Flask 3.0 does not support indirect imports of escape, which originates from markupsafe. --- pkgs/applications/video/frigate/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/applications/video/frigate/default.nix b/pkgs/applications/video/frigate/default.nix index 6a93401d985d..d6437d09f421 100644 --- a/pkgs/applications/video/frigate/default.nix +++ b/pkgs/applications/video/frigate/default.nix @@ -3,6 +3,7 @@ , python3 , fetchFromGitHub , fetchurl +, fetchpatch2 , frigate , nixosTests }: @@ -58,6 +59,14 @@ python.pkgs.buildPythonApplication rec { inherit src; + patches = [ + (fetchpatch2 { + name = "frigate-flask3.0-compat.patch"; + url = "https://github.com/blakeblackshear/frigate/commit/56bdacc1c661eff8a323e033520e75e2ba0a3842.patch"; + hash = "sha256-s/goUJxIbjq/woCEOEZECdcZoJDoWc1eM63sd60cxeY="; + }) + ]; + postPatch = '' echo 'VERSION = "${version}"' > frigate/version.py @@ -97,6 +106,7 @@ python.pkgs.buildPythonApplication rec { click flask imutils + markupsafe matplotlib norfair numpy