From 4b5650588a506b037efd655d72ed5617b5bfb0ce Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 25 Jun 2025 18:03:54 +0200 Subject: [PATCH] pretalx.plugins.llm: init at 0.5.0 Pretalx LLM integration for semantic similarity of submissions. --- pkgs/by-name/pr/pretalx/plugins/llm.nix | 50 +++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 pkgs/by-name/pr/pretalx/plugins/llm.nix diff --git a/pkgs/by-name/pr/pretalx/plugins/llm.nix b/pkgs/by-name/pr/pretalx/plugins/llm.nix new file mode 100644 index 000000000000..bb043355a8e9 --- /dev/null +++ b/pkgs/by-name/pr/pretalx/plugins/llm.nix @@ -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 ]; + }; +}