diff options
Diffstat (limited to 'pkgs/by-name/pr/pretalx/package.nix')
-rw-r--r-- | pkgs/by-name/pr/pretalx/package.nix | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/pkgs/by-name/pr/pretalx/package.nix b/pkgs/by-name/pr/pretalx/package.nix index 9f733eeb8fe4b..784976d06eaf8 100644 --- a/pkgs/by-name/pr/pretalx/package.nix +++ b/pkgs/by-name/pr/pretalx/package.nix @@ -3,6 +3,8 @@ , gettext , python3 , fetchFromGitHub +, fetchpatch2 +, plugins ? [ ] , nixosTests }: @@ -42,7 +44,7 @@ let homepage = "https://github.com/pretalx/pretalx"; changelog = "https://docs.pretalx.org/en/latest/changelog.html"; license = licenses.asl20; - maintainers = teams.c3d2.members; + maintainers = with maintainers; [ hexa] ++ teams.c3d2.members; platforms = platforms.linux; }; @@ -69,6 +71,15 @@ python.pkgs.buildPythonApplication rec { "static" ]; + patches = [ + (fetchpatch2 { + # Backport support for Djangorestframework 3.15.x + name = "pretalx-drf-3.15.patch"; + url = "https://github.com/pretalx/pretalx/commit/43a0416c6968d64ea57720abdb82f482940b11f8.patch"; + hash = "sha256-Iw1xVF7j7c712kwIk1SMbQSF0ixMUZr1BJib3KAb2HY="; + }) + ]; + postPatch = '' substituteInPlace src/pretalx/common/management/commands/rebuild.py \ --replace 'subprocess.check_call(["npm", "run", "build"], cwd=frontend_dir, env=env)' "" @@ -85,10 +96,19 @@ python.pkgs.buildPythonApplication rec { ]); pythonRelaxDeps = [ + "celery" + "css-inline" "cssutils" "django-csp" "django-filter" + "django-hierarkey" + "djangorestframework" + "markdown" + "pillow" "python-dateutil" + "reportlab" + "requests" + "rules" ]; propagatedBuildInputs = with python.pkgs; [ @@ -126,7 +146,7 @@ python.pkgs.buildPythonApplication rec { vobject whitenoise zxcvbn - ] ++ beautifulsoup4.optional-dependencies.lxml; + ] ++ beautifulsoup4.optional-dependencies.lxml ++ plugins; passthru.optional-dependencies = { mysql = with python.pkgs; [ @@ -204,6 +224,12 @@ python.pkgs.buildPythonApplication rec { tests = { inherit (nixosTests) pretalx; }; + plugins = lib.recurseIntoAttrs ( + lib.packagesFromDirectoryRecursive { + inherit (python.pkgs) callPackage; + directory = ./plugins; + } + ); }; inherit meta; |