From 470e70919c91ce00f921494d50c4292299034e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 10 Jul 2026 17:00:40 -0700 Subject: [PATCH 1/2] frigate: use overrideScope --- pkgs/by-name/fr/frigate/package.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/fr/frigate/package.nix b/pkgs/by-name/fr/frigate/package.nix index 952c7c49c4f8..3bd08094e6a3 100644 --- a/pkgs/by-name/fr/frigate/package.nix +++ b/pkgs/by-name/fr/frigate/package.nix @@ -29,8 +29,8 @@ let inherit version src; }; - python = python313Packages.python.override { - packageOverrides = self: super: { + python3Packages = python313Packages.overrideScope ( + self: super: { joserfc = super.joserfc.overridePythonAttrs (oldAttrs: { version = "1.1.0"; src = fetchFromGitHub { @@ -43,9 +43,10 @@ let huggingface-hub = super.huggingface-hub_0; transformers = super.transformers_4; - }; - }; - python3Packages = python.pkgs; + } + ); + + inherit (python3Packages) python; # Tensorflow audio model # https://github.com/blakeblackshear/frigate/blob/v0.15.0/docker/main/Dockerfile#L125 From afa865a008bfc6df7edd15bc1ab5812133cfcdb7 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 11 Jul 2026 12:20:11 +0200 Subject: [PATCH 2/2] frigate: fix pandas 3.0 compat --- pkgs/by-name/fr/frigate/package.nix | 3 +++ pkgs/by-name/fr/frigate/pandas3-compat.patch | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 pkgs/by-name/fr/frigate/pandas3-compat.patch diff --git a/pkgs/by-name/fr/frigate/package.nix b/pkgs/by-name/fr/frigate/package.nix index 3bd08094e6a3..024fdc31b76d 100644 --- a/pkgs/by-name/fr/frigate/package.nix +++ b/pkgs/by-name/fr/frigate/package.nix @@ -102,6 +102,9 @@ python3Packages.buildPythonApplication rec { # Fix excessive trailing whitespaces in process commandlines # https://github.com/blakeblackshear/frigate/pull/22089 ./proc-cmdline-strip.patch + + # Fix more granular dtype resultion in Pandas 3.0 + ./pandas3-compat.patch ]; postPatch = '' diff --git a/pkgs/by-name/fr/frigate/pandas3-compat.patch b/pkgs/by-name/fr/frigate/pandas3-compat.patch new file mode 100644 index 000000000000..466e45e0153f --- /dev/null +++ b/pkgs/by-name/fr/frigate/pandas3-compat.patch @@ -0,0 +1,13 @@ +diff --git a/frigate/api/review.py b/frigate/api/review.py +index 76619dcb2..f72c0efc3 100644 +--- a/frigate/api/review.py ++++ b/frigate/api/review.py +@@ -660,7 +660,7 @@ def motion_activity( + df.iloc[i : i + chunk, 0] = 0.0 + + # change types for output +- df.index = df.index.astype(int) // (10**9) ++ df.index = df.index.as_unit("s").astype("int64") + normalized = df.reset_index().to_dict("records") + return JSONResponse(content=normalized) +