Skip to content

Commit

Permalink
open-webui: 0.3.32 -> 0.3.35 (#351022)
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol authored Oct 30, 2024
2 parents 32be722 + 719d463 commit a37eba4
Showing 1 changed file with 12 additions and 7 deletions.
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 @@ -60,12 +61,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 @@ -84,6 +86,7 @@ python3.pkgs.buildPythonApplication rec {
flask-cors
fpdf2
ftfy
qdrant-client
google-generativeai
googleapis-common-protos
langchain
Expand All @@ -103,6 +106,7 @@ python3.pkgs.buildPythonApplication rec {
psycopg2-binary
pydub
pyjwt
pymdown-extensions
pymilvus
pymongo
pymysql
Expand All @@ -124,11 +128,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

0 comments on commit a37eba4

Please sign in to comment.