Commit 91d6a840 authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files
parent 823833de
Loading
Loading
Loading
Loading
+92 −89
Original line number Diff line number Diff line
@@ -7,19 +7,19 @@
}:
let
  pname = "open-webui";
  version = "0.5.5";
  version = "0.5.6";

  src = fetchFromGitHub {
    owner = "open-webui";
    repo = "open-webui";
    tag = "v${version}";
    hash = "sha256-4g+dt1dbN/ulERW3WLjTJ0++JD5NLREXjGu6ngPdxAI=";
    hash = "sha256-9HRUFG8knKJx5Fr0uxLPMwhhbNnQ7CSywla8LGZu8l4=";
  };

  frontend = buildNpmPackage {
    inherit pname version src;

    npmDepsHash = "sha256-cIocYy91JfcZM35ZiT6onEsz89qAZ+7jCjpjg6lV4pc=";
    npmDepsHash = "sha256-copQjrFgVJ6gZ8BwPiIsHEKSZDEiuVU3qygmPFv5Y1A=";

    # Disabling `pyodide:fetch` as it downloads packages during `buildPhase`
    # Until this is solved, running python packages from the browser will not work.
@@ -46,6 +46,8 @@ python312.pkgs.buildPythonApplication rec {
  inherit pname version src;
  pyproject = true;

  build-system = with python312.pkgs; [ hatchling ];

  # Not force-including the frontend build directory as frontend is managed by the `frontend` derivation above.
  postPatch = ''
    substituteInPlace pyproject.toml \
@@ -62,7 +64,9 @@ python312.pkgs.buildPythonApplication rec {
    "pytest-docker"
  ];

  dependencies = with python312.pkgs; [
  dependencies =
    with python312.pkgs;
    [
      aiocache
      aiofiles
      aiohttp
@@ -145,9 +149,8 @@ python312.pkgs.buildPythonApplication rec {
      validators
      xlrd
      youtube-transcript-api
  ];

  build-system = with python312.pkgs; [ hatchling ];
    ]
    ++ moto.optional-dependencies.s3;

  pythonImportsCheck = [ "open_webui" ];