open-webui: 0.3.21 -> 0.3.28 (#343205)

This commit is contained in:
Pol Dellaiera 2024-09-25 04:20:14 +02:00 committed by GitHub
commit 962b73a5bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 77 additions and 3 deletions

View File

@ -7,19 +7,19 @@
}:
let
pname = "open-webui";
version = "0.3.21";
version = "0.3.28";
src = fetchFromGitHub {
owner = "open-webui";
repo = "open-webui";
rev = "refs/tags/v${version}";
hash = "sha256-b+r+nEv+9IM56KkCi9tZqnEbyCX69mFhp0Be5/9lR9c=";
hash = "sha256-DjwHylu6ke74dxPuMDbLMrfWL9yvmh4W8QGyLzzUZVg=";
};
frontend = buildNpmPackage {
inherit pname version src;
npmDepsHash = "sha256-LH07LzYZpVzRAvkjoTgt7LJdXZZoDMt//ZAl30z7AHw=";
npmDepsHash = "sha256-AWKIqijjTKJJFOzFIcSas+cAq0mZSsYGsVNpk2yQ4ZE=";
# Disabling `pyodide:fetch` as it downloads packages during `buildPhase`
# Until this is solved, running python packages from the browser will not work.
@ -76,8 +76,10 @@ python3.pkgs.buildPythonApplication rec {
black
boto3
chromadb
colbert-ai
docx2txt
duckduckgo-search
einops
extract-msg
fake-useragent
fastapi
@ -103,6 +105,7 @@ python3.pkgs.buildPythonApplication rec {
psycopg2
pydub
pyjwt
pymilvus
pymongo
pymysql
pypandoc

View File

@ -0,0 +1,69 @@
{
lib,
buildPythonPackage,
fetchPypi,
# build-system
setuptools,
# dependencies
bitarray,
datasets,
flask,
python-dotenv,
ninja,
scipy,
tqdm,
transformers,
ujson,
gitpython,
torch,
faiss,
}:
buildPythonPackage rec {
pname = "colbert-ai";
version = "0.2.21";
pyproject = true;
src = fetchPypi {
inherit version;
pname = "colbert_ai";
hash = "sha256-qNb9tOInLysI7Tf45QlgchYNhBXR5AWFdRiYt35iW6s=";
};
pythonRemoveDeps = [ "git-python" ];
build-system = [
setuptools
];
dependencies = [
bitarray
datasets
faiss
flask
gitpython
python-dotenv
ninja
scipy
torch
tqdm
transformers
ujson
];
pythonImportsCheck = [ "colbert" ];
# There is no tests
doCheck = false;
meta = {
description = "Fast and accurate retrieval model, enabling scalable BERT-based search over large text collections in tens of milliseconds";
homepage = "https://github.com/stanford-futuredata/ColBERT";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
bachp
];
};
}

View File

@ -2438,6 +2438,8 @@ self: super: with self; {
colander = callPackage ../development/python-modules/colander { };
colbert-ai = callPackage ../development/python-modules/colbert-ai { };
collections-extended = callPackage ../development/python-modules/collections-extended { };
collidoscope = callPackage ../development/python-modules/collidoscope { };