{ fetchgit, pkgs, python3Packages, buildNpmPackage, }: let version = "0.4.1"; src = fetchgit { url = "https://git.tjkeller.xyz/immich-frame"; tag = "v${version}"; hash = "sha256-1E//uhk/egkt5y1XMn52EHumdgswxq45bwntNIoCeRM="; }; frontend = buildNpmPackage { inherit version src; pname = "immich-frame-frontend"; npmWorkspace = "src/client"; npmDepsHash = "sha256-/8dHzpqvnDZb+SV9O/GvTyspKLaPDs4vt3QrzoLsyEI="; installPhase = '' mkdir -p $out cp -R dist $out/ ''; }; in python3Packages.buildPythonApplication { inherit version src; pname = "immich-frame"; makeWrapperArgs = [ "--set" "IMMICH_FRAME_STATIC_WEB_ASSETS" "${frontend}/dist" ]; pyproject = true; build-system = with python3Packages; [ setuptools ]; propagatedBuildInputs = with python3Packages; [ flask flask-cors # DEBUG flask-socketio numpy pillow platformdirs pygame pyopengl requests ]; }