From bce9b0fde9d50fa2db330fbd1de51a7bc2d49e2e Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 2 Feb 2025 01:28:48 +0100 Subject: [PATCH] pretix: 2024.11.0 -> 2025.1.0 https://pretix.eu/about/en/blog/20250131-release-2025-1-0/ https://github.com/pretix/pretix/compare/refs/tags/v2024.11.0...v2025.1.0 --- nixos/modules/services/web-apps/pretix.nix | 2 +- pkgs/by-name/pr/pretix/package.nix | 13 +++---------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/nixos/modules/services/web-apps/pretix.nix b/nixos/modules/services/web-apps/pretix.nix index 68b65e2260d2..75c95464d6fa 100644 --- a/nixos/modules/services/web-apps/pretix.nix +++ b/nixos/modules/services/web-apps/pretix.nix @@ -439,7 +439,7 @@ in expires 7d; ''; }; - "^~ /media/(cachedfiles|invoices)" = { + "^~ (/media/(cachedfiles|invoices)|/static/(staticfiles.json|CACHE/manifest.json))" = { extraConfig = '' deny all; return 404; diff --git a/pkgs/by-name/pr/pretix/package.nix b/pkgs/by-name/pr/pretix/package.nix index 2cb5569135a5..95aa85019412 100644 --- a/pkgs/by-name/pr/pretix/package.nix +++ b/pkgs/by-name/pr/pretix/package.nix @@ -3,7 +3,6 @@ buildNpmPackage, fetchFromGitHub, fetchPypi, - fetchpatch2, nodejs, python3, gettext, @@ -43,13 +42,13 @@ let }; pname = "pretix"; - version = "2024.11.0"; + version = "2025.1.0"; src = fetchFromGitHub { owner = "pretix"; repo = "pretix"; rev = "refs/tags/v${version}"; - hash = "sha256-vmk7oW9foXkZdt3XOLJDbPldX2TruJOgd8mmi5tGqNw="; + hash = "sha256-azJFXuoV+9qs5MJQTkc1+ZiJb6UKwEa0Ow0p31CkHqI="; }; npmDeps = buildNpmPackage { @@ -57,7 +56,7 @@ let inherit version src; sourceRoot = "${src.name}/src/pretix/static/npm_dir"; - npmDepsHash = "sha256-4PrOrI2cykkuzob+DMeAu/GF5OMCho40G3BjCwVW/tE="; + npmDepsHash = "sha256-oo9fo3MjwKYA8gueJ5otIPawORaVNj/Js3y8ZuCZ4qQ="; dontBuild = true; @@ -79,12 +78,6 @@ python.pkgs.buildPythonApplication rec { # Discover pretix.plugin entrypoints during build and add them into # INSTALLED_APPS, so that their static files are collected. ./plugin-build.patch - - (fetchpatch2 { - # fix tests after 2025-01-01 - url = "https://github.com/pretix/pretix/commit/5a5a551c21461d9ef36337480c9874d65a9fdba9.patch"; - hash = "sha256-ZtSVI6nVlJtNrnBZ9ktIqFGtNf+oWtvNsgCWwOUwVug="; - }) ]; pythonRelaxDeps = [