From e2ccd9983fdc8f43c22ab6027417d9c279a94c2b Mon Sep 17 00:00:00 2001 From: codgician <15964984+codgician@users.noreply.github.com> Date: Mon, 8 Sep 2025 20:54:37 +0800 Subject: [PATCH] open-webui: 0.6.25 -> 0.6.26 Diff: https://github.com/open-webui/open-webui/compare/v0.6.25...v0.6.26 Changelog: https://github.com/open-webui/open-webui/blob/v0.6.26/CHANGELOG.md --- .../manual/release-notes/rl-2511.section.md | 2 ++ pkgs/by-name/op/open-webui/package.nix | 35 +++++++++++-------- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-2511.section.md b/nixos/doc/manual/release-notes/rl-2511.section.md index 5f6f123ac4e4..3e3b8f10a74a 100644 --- a/nixos/doc/manual/release-notes/rl-2511.section.md +++ b/nixos/doc/manual/release-notes/rl-2511.section.md @@ -297,3 +297,5 @@ - The `nettools` package (ifconfig, arp, mii-tool, netstat, route) is not installed by default anymore. The suite is unmaintained and users should migrate to `iproute2` and `ethtool` instead. - `sparkleshare` has been removed as it no longer builds and has been abandoned upstream. + +- The `open-webui` package's postgres support have been moved to optional dependencies to comply with upstream changes in 0.6.26. diff --git a/pkgs/by-name/op/open-webui/package.nix b/pkgs/by-name/op/open-webui/package.nix index 0ac600275fd2..cc7aa4d6606c 100644 --- a/pkgs/by-name/op/open-webui/package.nix +++ b/pkgs/by-name/op/open-webui/package.nix @@ -9,13 +9,13 @@ }: let pname = "open-webui"; - version = "0.6.25"; + version = "0.6.26"; src = fetchFromGitHub { owner = "open-webui"; repo = "open-webui"; tag = "v${version}"; - hash = "sha256-XB3cwxtcOVoAwGJroZuPT8XwaCo3wpkn2KIEuuXMeu4="; + hash = "sha256-ourzYHwVSlM4nqEbkKf6PsNfNkW8quXdcBSW0p16pIg="; }; frontend = buildNpmPackage rec { @@ -32,7 +32,7 @@ let url = "https://github.com/pyodide/pyodide/releases/download/${pyodideVersion}/pyodide-${pyodideVersion}.tar.bz2"; }; - npmDepsHash = "sha256-WL1kdXn7uAaBEwWiIJzzisMZ1uiaOVtFViWK/kW6lsY="; + npmDepsHash = "sha256-xZtES8qZ7MTt/OviEqGmGO3D3BuOpMGHjnBuSsdFJgM="; # See https://github.com/open-webui/open-webui/issues/15880 npmFlags = [ @@ -85,12 +85,6 @@ python3Packages.buildPythonApplication rec { pythonRelaxDeps = true; - pythonRemoveDeps = [ - "docker" - "pytest" - "pytest-docker" - ]; - dependencies = with python3Packages; [ @@ -126,7 +120,6 @@ python3Packages.buildPythonApplication rec { firecrawl-py fpdf2 ftfy - gcp-storage-emulator google-api-python-client google-auth-httplib2 google-auth-oauthlib @@ -139,11 +132,9 @@ python3Packages.buildPythonApplication rec { langchain langchain-community langdetect - langfuse ldap3 loguru markdown - moto nltk onnxruntime openai @@ -172,14 +163,12 @@ python3Packages.buildPythonApplication rec { playwright posthog psutil - psycopg2-binary pyarrow pycrdt pydub pyjwt pymdown-extensions pymilvus - pymongo pymysql pypandoc pypdf @@ -209,7 +198,22 @@ python3Packages.buildPythonApplication rec { xlrd youtube-transcript-api ] - ++ moto.optional-dependencies.s3; + ++ pyjwt.optional-dependencies.crypto; + + optional-dependencies = with python3Packages; rec { + postgres = [ + pgvector + psycopg2-binary + ]; + + all = [ + moto + gcp-storage-emulator + pymongo + ] + ++ moto.optional-dependencies.s3 + ++ postgres; + }; pythonImportsCheck = [ "open_webui" ]; @@ -247,6 +251,7 @@ python3Packages.buildPythonApplication rec { mainProgram = "open-webui"; maintainers = with lib.maintainers; [ shivaraj-bh + codgician ]; }; }