diff options
Diffstat (limited to 'pkgs/by-name/pr/pretalx/package.nix')
-rw-r--r-- | pkgs/by-name/pr/pretalx/package.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/by-name/pr/pretalx/package.nix b/pkgs/by-name/pr/pretalx/package.nix index 4674812339ae3..784976d06eaf8 100644 --- a/pkgs/by-name/pr/pretalx/package.nix +++ b/pkgs/by-name/pr/pretalx/package.nix @@ -3,6 +3,7 @@ , gettext , python3 , fetchFromGitHub +, fetchpatch2 , plugins ? [ ] , nixosTests }: @@ -70,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)' "" @@ -92,10 +102,12 @@ python.pkgs.buildPythonApplication rec { "django-csp" "django-filter" "django-hierarkey" + "djangorestframework" "markdown" "pillow" "python-dateutil" "reportlab" + "requests" "rules" ]; |