pretalx.plugins.llm: init at 0.5.0

Pretalx LLM integration for semantic similarity of submissions.
This commit is contained in:
Martin Weinelt
2025-06-25 18:03:54 +02:00
parent 61c0f51391
commit 4b5650588a
+50
View File
@@ -0,0 +1,50 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
numpy,
ollama,
openai,
python-redis-lock,
umap-learn,
}:
buildPythonPackage rec {
pname = "pretalx-llm";
version = "0.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "why2025-datenzone";
repo = "pretalx-llm";
rev = "v${version}";
hash = "sha256-Ga6Itvc+yL+p6K7w6WYTeNfxahaohDidDWnt0GtcWEM=";
};
build-system = [
setuptools
];
dependencies = [
numpy
ollama
openai
python-redis-lock
umap-learn
];
doCheck = false; # no tests
pythonImportsCheck = [
"pretalx_llm"
];
meta = {
description = "LLM support for Pretalx";
homepage = "https://github.com/why2025-datenzone/pretalx-llm";
changelog = "https://github.com/why2025-datenzone/pretalx-llm/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ hexa ];
};
}