pretalx: add basic support for plugins

This commit is contained in:
Weijia Wang
2024-05-15 14:10:03 +02:00
parent 7257e9980e
commit 3607e66f5a
+8 -1
View File
@@ -3,6 +3,7 @@
, gettext
, python3
, fetchFromGitHub
, plugins ? [ ]
, nixosTests
}:
@@ -132,7 +133,7 @@ python.pkgs.buildPythonApplication rec {
vobject
whitenoise
zxcvbn
] ++ beautifulsoup4.optional-dependencies.lxml;
] ++ beautifulsoup4.optional-dependencies.lxml ++ plugins;
passthru.optional-dependencies = {
mysql = with python.pkgs; [
@@ -210,6 +211,12 @@ python.pkgs.buildPythonApplication rec {
tests = {
inherit (nixosTests) pretalx;
};
plugins = lib.recurseIntoAttrs (
lib.packagesFromDirectoryRecursive {
inherit (python.pkgs) callPackage;
directory = ./plugins;
}
);
};
inherit meta;