Unverified Commit 03a3879b authored by Martin Weinelt's avatar Martin Weinelt
Browse files
parent 237fbfe6
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -42,13 +42,13 @@ let
  };

  pname = "pretix";
  version = "2025.7.1";
  version = "2025.8.0";

  src = fetchFromGitHub {
    owner = "pretix";
    repo = "pretix";
    rev = "refs/tags/v${version}";
    hash = "sha256-emPzCwViqbGqlQRYmyamhQ5y6a3g67TTYIdv6FWbGEU=";
    hash = "sha256-89BAQZpXyyTg6T9hxm4EV8QHZDcD3FcnGKxAulxziyg=";
  };

  npmDeps = buildNpmPackage {
@@ -56,7 +56,7 @@ let
    inherit version src;

    sourceRoot = "${src.name}/src/pretix/static/npm_dir";
    npmDepsHash = "sha256-cvyOpEw6z0cNUdHRmyEZUoeKPMOAtC+YHYXCltbHdm0=";
    npmDepsHash = "sha256-E2K9SYqRbhpQi83va8D02cwPnf51haoKv4P/ppU2m08=";

    dontBuild = true;

@@ -85,6 +85,7 @@ python.pkgs.buildPythonApplication rec {
    "celery"
    "css-inline"
    "django-bootstrap3"
    "django-formset-js-improved"
    "django-i18nfield"
    "django-localflavor"
    "django-phonenumber-field"
@@ -97,6 +98,7 @@ python.pkgs.buildPythonApplication rec {
    "phonenumberslite"
    "pillow"
    "protobuf"
    "pycparser"
    "pycryptodome"
    "pyjwt"
    "pypdf"
@@ -127,6 +129,10 @@ python.pkgs.buildPythonApplication rec {
    substituteInPlace pyproject.toml \
      --replace-fail '"backend"' '"setuptools.build_meta"' \
      --replace-fail 'backend-path = ["_build"]' ""

    # npm ci would remove and try to reinstall node_modules
    substituteInPlace src/pretix/_build.py \
      --replace-fail "npm ci" "npm install"
  '';

  build-system = with python.pkgs; [