Unverified Commit d8c7281d authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

mealie: 2.6.0 -> 2.7.1 (#387327)

parents e67d838d 034a3c98
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
diff --git a/mealie/services/openai/openai.py b/mealie/services/openai/openai.py
index 09c391d5..5d74d930 100644
--- a/mealie/services/openai/openai.py
+++ b/mealie/services/openai/openai.py
@@ -7,7 +7,7 @@ from pathlib import Path
 from textwrap import dedent
 
 from openai import NOT_GIVEN, AsyncOpenAI
-from openai.resources.chat.completions import ChatCompletion
+from openai.types.chat import ChatCompletion
 from pydantic import BaseModel, field_validator
 
 from mealie.core.config import get_app_settings
+8 −9
Original line number Diff line number Diff line
@@ -7,15 +7,16 @@
  nixosTests,
  python3Packages,
  writeShellScript,
  nix-update-script,
}:

let
  version = "2.6.0";
  version = "2.7.1";
  src = fetchFromGitHub {
    owner = "mealie-recipes";
    repo = "mealie";
    tag = "v${version}";
    hash = "sha256-txkHCQ/xTakPXXFki161jNOKwAH9p9z1hCNEEkbqQtM=";
    hash = "sha256-nN8AuSzxHjIDKc8rGN+O2/vlzkH/A5LAr4aoAlOTLlk=";
  };

  frontend = callPackage (import ./mealie-frontend.nix src version) { };
@@ -55,11 +56,6 @@ pythonpkgs.buildPythonApplication rec {

  pythonRelaxDeps = true;

  patches = [
      # compatibility with openai 1.63.0
      ./0000_openai_1.63.0.patch
  ];

  dependencies = with pythonpkgs; [
    aiofiles
    alembic
@@ -141,9 +137,12 @@ pythonpkgs.buildPythonApplication rec {
    "tests/unit_tests/test_security.py"
  ];

  passthru.tests = {
  passthru = {
    updateScript = nix-update-script { };
    tests = {
      inherit (nixosTests) mealie;
    };
  };

  meta = with lib; {
    description = "Self hosted recipe manager and meal planner";