Skip to content

Commit

Permalink
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 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,
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.
Expand All @@ -41,7 +41,7 @@ let
'';
};
in
python311.pkgs.buildPythonApplication rec {
python312.pkgs.buildPythonApplication rec {
inherit pname version src;
pyproject = true;

Expand All @@ -61,7 +61,8 @@ python311.pkgs.buildPythonApplication rec {
"pytest-docker"
];

dependencies = with python311.pkgs; [
dependencies = with python312.pkgs; [
aiocache
aiohttp
alembic
anthropic
Expand All @@ -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
Expand All @@ -119,6 +122,7 @@ python311.pkgs.buildPythonApplication rec {
python-socketio
pytube
pyxlsb
qdrant-client
rank-bm25
rapidocr-onnxruntime
redis
Expand All @@ -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" ];

Expand All @@ -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 ];
};
}

0 comments on commit bfa4575

Please sign in to comment.