pretalx: add basic support for plugins
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user