Commit Graph

14 Commits

Author SHA1 Message Date
adisbladis
e0816431a2 treewide: Pass self when overriding Python
Otherwise references to the Python interpreter inside the set are wrong, as demonstrated by:
``` nix
with import <nixpkgs> { };
let
  python' = python3.override {
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the _non_ overriden requests.

And the same with `self`:
```
with import <nixpkgs> { };
let
  python' = python3.override {
    self = python';
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the overriden requests.

This can manifest itself as file collisions when constructing environments or as subtly incorrect dependency graphs.
2024-08-03 12:18:56 +12:00
Martin Weinelt
5831972dc6
frigate: pin to python3.11, support mpl 3.9.0
and backport a patch that prevents crashes if /run/secrets exists, but
is unaccessible to frigate.

Closes: #325228
2024-07-07 15:49:26 +02:00
Martin Weinelt
e62c51a05c
frigate: fix path to onvif wsdl files
Frigate assumes, that all its dependencies are in the same site-packages
directory as frigate itself, which is not the case with how we link
together environments using the PYTHONPATH.
2024-04-14 20:39:55 +02:00
R. Ryantm
b0d8a540a9 frigate: 0.13.1 -> 0.13.2 2024-02-19 09:35:02 +00:00
Martin Weinelt
4572f3ec59
frigate: fix flask 3.0 compat
Flask 3.0 does not support indirect imports of escape, which originates
from markupsafe.
2024-02-15 05:01:26 +01:00
fleaz
250078ceba
frigate: 0.12.1 -> 0.13.1
Changelog:
https://github.com/blakeblackshear/frigate/releases/tag/v0.13.0
https://github.com/blakeblackshear/frigate/releases/tag/v0.13.1

Co-Authored-By: Martin Weinelt <hexa@darmstadt.ccc.de>
2024-02-06 22:54:22 +01:00
natsukium
f2aa67314e
frigate: pin pydantic_1 2023-12-20 20:15:32 +01:00
Martin Weinelt
f345c59481
frigate: drop opencv pin
Started failing when opencv was replaced by opencv4 and caused a
conflict in the python environment due to multiple instances of the same
library being present.
2023-11-14 13:58:19 +01:00
Jan Malakhovski
5852f26bdc treewide: noop: refer to src.name or similar in sourceRoot where appropriate, part 1: trivial cases 2023-08-03 16:32:03 +00:00
Martin Weinelt
5b3f58125e
frigate: fix serving of clips
Frigate uses string concat to create some paths, which relies on the
cache path ending with a trailing slash.

I've meanwhile proposed a fix upstream, that will likely
be part of the next release.
2023-07-29 17:54:15 +02:00
Martin Weinelt
8fc3dc8ee8
frigate: 0.12.0 -> 0.12.1
https://github.com/blakeblackshear/frigate/releases/tag/v0.12.1
2023-07-13 03:27:46 +02:00
Martin Weinelt
d55cec42d1
frigate: substitute more paths
Fixes the error image for unreachable cameras, the idle image for the
birdseye view and fix cache path in old clip removal function.
2023-05-25 01:58:00 +02:00
Martin Weinelt
c7ad6560b0
nixos/tests/frigate: init
Starts a frigate instance with a dummy video stream provided by ffmpeg.

Co-Authored-By: fleaz <mail@felixbreidenstein.de>
2023-05-22 16:29:55 +02:00
Martin Weinelt
76f9a4b617
frigate: init at 0.12.0
Frigate is a NVR with realtime local object detection for IP cameras.
2023-05-22 16:29:54 +02:00