diff --git a/pkgs/by-name/op/open-webui/package.nix b/pkgs/by-name/op/open-webui/package.nix index d743dda45176da..b850e4adb0c3de 100644 --- a/pkgs/by-name/op/open-webui/package.nix +++ b/pkgs/by-name/op/open-webui/package.nix @@ -2,24 +2,24 @@ lib, buildNpmPackage, fetchFromGitHub, - python311, + python312, nixosTests, }: let pname = "open-webui"; - version = "0.3.35"; + version = "0.4.1"; src = fetchFromGitHub { owner = "open-webui"; repo = "open-webui"; rev = "refs/tags/v${version}"; - hash = "sha256-H46qoOEajPKRU/Lbd6r7r0vRjWSd7uGoA0deaDv6HSw="; + hash = "sha256-RPnAGketu/ecGxqI/LdUQlb8EWc19wZJoylkOa8jxpw="; }; frontend = buildNpmPackage { inherit pname version src; - npmDepsHash = "sha256-ohWSfwZfC/jfOpnNSqsvMyYnukk3Xa3Tq32PAl8Ds60="; + npmDepsHash = "sha256-kRWz9b9zaa0lLX+5YXxtwZfw6jI88IRMrt6i4o6ak+E="; # Disabling `pyodide:fetch` as it downloads packages during `buildPhase` # Until this is solved, running python packages from the browser will not work. @@ -41,7 +41,7 @@ let ''; }; in -python311.pkgs.buildPythonApplication rec { +python312.pkgs.buildPythonApplication rec { inherit pname version src; pyproject = true; @@ -61,7 +61,8 @@ python311.pkgs.buildPythonApplication rec { "pytest-docker" ]; - dependencies = with python311.pkgs; [ + dependencies = with python312.pkgs; [ + aiocache aiohttp alembic anthropic @@ -86,22 +87,24 @@ python311.pkgs.buildPythonApplication rec { flask-cors fpdf2 ftfy - qdrant-client google-generativeai googleapis-common-protos langchain langchain-chroma langchain-community langfuse + ldap3 markdown nltk openai opencv-python-headless openpyxl + opensearch-py pandas passlib peewee peewee-migrate + pgvector psutil psycopg2-binary pydub @@ -119,6 +122,7 @@ python311.pkgs.buildPythonApplication rec { python-socketio pytube pyxlsb + qdrant-client rank-bm25 rapidocr-onnxruntime redis @@ -128,12 +132,11 @@ python311.pkgs.buildPythonApplication rec { unstructured uvicorn validators - xhtml2pdf xlrd youtube-transcript-api ]; - build-system = with python311.pkgs; [ hatchling ]; + build-system = with python312.pkgs; [ hatchling ]; pythonImportsCheck = [ "open_webui" ]; @@ -144,11 +147,11 @@ python311.pkgs.buildPythonApplication rec { }; meta = { + changelog = "https://github.com/open-webui/open-webui/blob/${src.rev}/CHANGELOG.md"; description = "Comprehensive suite for LLMs with a user-friendly WebUI"; homepage = "https://github.com/open-webui/open-webui"; - changelog = "https://github.com/open-webui/open-webui/blob/${src.rev}/CHANGELOG.md"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ shivaraj-bh ]; mainProgram = "open-webui"; + maintainers = with lib.maintainers; [ shivaraj-bh ]; }; }