Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open-webui: 0.3.32 -> 0.3.35 #351022

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions pkgs/by-name/op/open-webui/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
lib,
buildNpmPackage,
fetchFromGitHub,
python3,
python311,
nixosTests,
}:
let
pname = "open-webui";
version = "0.3.32";
version = "0.3.35";

src = fetchFromGitHub {
owner = "open-webui";
repo = "open-webui";
rev = "refs/tags/v${version}";
hash = "sha256-XpPaMGn+JA3Rq+Eb97IGWMLAR+0pI+ZJRxOTmxIMPZg=";
hash = "sha256-H46qoOEajPKRU/Lbd6r7r0vRjWSd7uGoA0deaDv6HSw=";
};

frontend = buildNpmPackage {
inherit pname version src;

npmDepsHash = "sha256-tAPI/H5/lv+RuDZ68lL/cZHcOs8H6ZxXSwiFvkp0y4A=";
npmDepsHash = "sha256-ohWSfwZfC/jfOpnNSqsvMyYnukk3Xa3Tq32PAl8Ds60=";

# Disabling `pyodide:fetch` as it downloads packages during `buildPhase`
# Until this is solved, running python packages from the browser will not work.
Expand All @@ -29,6 +29,7 @@ let
'';

env.CYPRESS_INSTALL_BINARY = "0"; # disallow cypress from downloading binaries in sandbox
env.ONNXRUNTIME_NODE_INSTALL_CUDA = "skip";

installPhase = ''
runHook preInstall
Expand All @@ -40,7 +41,7 @@ let
'';
};
in
python3.pkgs.buildPythonApplication rec {
python311.pkgs.buildPythonApplication rec {
inherit pname version src;
pyproject = true;

Expand All @@ -64,12 +65,13 @@ python3.pkgs.buildPythonApplication rec {
"pytest-docker"
];

dependencies = with python3.pkgs; [
dependencies = with python311.pkgs; [
aiohttp
alembic
anthropic
apscheduler
argon2-cffi
async-timeout
authlib
bcrypt
beautifulsoup4
Expand All @@ -88,6 +90,7 @@ python3.pkgs.buildPythonApplication rec {
flask-cors
fpdf2
ftfy
qdrant-client
google-generativeai
googleapis-common-protos
langchain
Expand All @@ -107,6 +110,7 @@ python3.pkgs.buildPythonApplication rec {
psycopg2
pydub
pyjwt
pymdown-extensions
pymilvus
pymongo
pymysql
Expand All @@ -128,11 +132,12 @@ python3.pkgs.buildPythonApplication rec {
unstructured
uvicorn
validators
xhtml2pdf
xlrd
youtube-transcript-api
];

build-system = with python3.pkgs; [ hatchling ];
build-system = with python311.pkgs; [ hatchling ];

pythonImportsCheck = [ "open_webui" ];

Expand Down