0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

pretix: 2024.11.0 -> 2025.1.0 (#378701)

This commit is contained in:
Martin Weinelt 2025-02-02 18:14:47 +01:00 committed by GitHub
commit 4c1b08bc0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 34 additions and 49 deletions

View file

@ -439,7 +439,7 @@ in
expires 7d;
'';
};
"^~ /media/(cachedfiles|invoices)" = {
"^~ (/media/(cachedfiles|invoices)|/static/(staticfiles.json|CACHE/manifest.json))" = {
extraConfig = ''
deny all;
return 404;

View file

@ -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 = [
@ -273,8 +266,9 @@ python.pkgs.buildPythonApplication rec {
python
;
plugins = lib.recurseIntoAttrs (
python.pkgs.callPackage ./plugins {
lib.packagesFromDirectoryRecursive {
inherit (python.pkgs) callPackage;
directory = ./plugins;
}
);
tests = {

View file

@ -1,18 +0,0 @@
{
callPackage,
...
}:
{
mollie = callPackage ./mollie.nix { };
pages = callPackage ./pages.nix { };
passbook = callPackage ./passbook.nix { };
reluctant-stripe = callPackage ./reluctant-stripe.nix { };
stretchgoals = callPackage ./stretchgoals.nix { };
zugferd = callPackage ./zugferd.nix { };
}

View file

@ -8,14 +8,14 @@
buildPythonPackage rec {
pname = "pretix-mollie";
version = "2.2.1";
version = "2.2.2";
pyproject = true;
src = fetchFromGitHub {
owner = "pretix";
repo = "pretix-mollie";
tag = "v${version}";
hash = "sha256-utrdFrE4XHDTi/45gUTFarD+PQoGIHc4gTkDR8dGu40=";
hash = "sha256-yc4t+XtHk7u3KcfeS+0CSTrBJ6e6SyLRpaQBHAKYVvo=";
};
build-system = [

View file

@ -30,7 +30,7 @@ buildPythonPackage rec {
patches = [
(substituteAll {
src = ./passbook-openssl.patch;
src = ./openssl.patch;
openssl = lib.getExe openssl;
})
];

View file

@ -11,14 +11,14 @@
buildPythonPackage rec {
pname = "pretix-zugferd";
version = "2.2.2";
version = "2.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pretix";
repo = "pretix-zugferd";
rev = "v${version}";
hash = "sha256-urf5HrC3Y64hH+U738t9fchoeR2sawlJAQoLFtwebA4=";
hash = "sha256-/efhp9B/cw/C3Bok8/E93dOrP9FHfaVZNSwC/j2lNuA=";
};
postPatch = ''

View file

@ -3,6 +3,9 @@
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# tests
djangorestframework,
html5lib,
@ -12,18 +15,20 @@
pyyaml,
}:
buildPythonPackage {
buildPythonPackage rec {
pname = "django-i18nfield";
version = "1.10.2";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "raphaelm";
repo = "django-i18nfield";
rev = "10488eb6c673be50e50387c76085a7c8d84e9157";
hash = "sha256-FF980LTw7RFuG9QgxA96yJsSczCNNMq9WsbacQqIReE=";
tag = version;
hash = "sha256-27PR2jLDXxRSgbJvRxDSBK4sTiqGAhP+XYg/fCg9AzM=";
};
build-system = [ setuptools ];
env.DJANGO_SETTINGS_MODULE = "tests.settings";
nativeCheckInputs = [

View file

@ -3,10 +3,11 @@
buildPythonPackage,
fetchFromGitHub,
# bring your own
django,
# build-system
setuptools,
# propagates
# dependencies
django,
python-stdnum,
# tests
@ -17,7 +18,7 @@
buildPythonPackage rec {
pname = "django-localflavor";
version = "4.0";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "django";
@ -26,9 +27,12 @@ buildPythonPackage rec {
hash = "sha256-UWp3ei1VlEsEfjbJIE+MpffSzYF4X1HEQw+z+5kZoP0=";
};
buildInputs = [ django ];
build-system = [ setuptools ];
propagatedBuildInputs = [ python-stdnum ];
dependencies = [
django
python-stdnum
];
pythonImportsCheck = [
# samples
@ -41,12 +45,12 @@ buildPythonPackage rec {
"localflavor.za"
];
checkInputs = [
nativeCheckInputs = [
pytest-django
pytestCheckHook
];
DJANGO_SETTINGS_MODULE = "tests.settings";
env.DJANGO_SETTINGS_MODULE = "tests.settings";
meta = with lib; {
description = "Country-specific Django helpers";

View file

@ -17,14 +17,14 @@
buildPythonPackage rec {
pname = "django-statici18n";
version = "2.5.0";
version = "2.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "zyegfryed";
repo = "django-statici18n";
tag = "v${version}";
hash = "sha256-n6HqHcXvz2ihwN+gJr5P+/Yt4RpuOu2yAjo9fiNZB54=";
hash = "sha256-G1JF/AQEDgvDamvjCYiQM7b6HfbdMBhfEUvT3yL1io0=";
};
build-system = [ setuptools ];