1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-27 19:46:40 +03:00

Merge pull request #332507 from mweinelt/pretix-fixes

pretix: variouss fixes
This commit is contained in:
Martin Weinelt 2024-08-05 19:07:34 +02:00 committed by GitHub
commit 2eb23c4472
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 22 additions and 2 deletions

View file

@ -538,6 +538,7 @@ in
TimeoutStartSec = "15min"; TimeoutStartSec = "15min";
ExecStart = "${getExe' pythonEnv "gunicorn"} --bind unix:/run/pretix/pretix.sock ${cfg.gunicorn.extraArgs} pretix.wsgi"; ExecStart = "${getExe' pythonEnv "gunicorn"} --bind unix:/run/pretix/pretix.sock ${cfg.gunicorn.extraArgs} pretix.wsgi";
RuntimeDirectory = "pretix"; RuntimeDirectory = "pretix";
Restart = "on-failure";
}; };
}; };
@ -559,7 +560,10 @@ in
"postgresql.service" "postgresql.service"
]; ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
serviceConfig.ExecStart = "${getExe' pythonEnv "celery"} -A pretix.celery_app worker ${cfg.celery.extraArgs}"; serviceConfig = {
ExecStart = "${getExe' pythonEnv "celery"} -A pretix.celery_app worker ${cfg.celery.extraArgs}";
Restart = "on-failure";
};
}; };
nginx.serviceConfig.SupplementaryGroups = mkIf cfg.nginx.enable [ "pretix" ]; nginx.serviceConfig.SupplementaryGroups = mkIf cfg.nginx.enable [ "pretix" ];

View file

@ -20,6 +20,7 @@
plugins = with pkgs.pretix.plugins; [ plugins = with pkgs.pretix.plugins; [
passbook passbook
pages pages
zugferd
]; ];
settings = { settings = {
pretix = { pretix = {

View file

@ -13,6 +13,16 @@ let
python = python3.override { python = python3.override {
self = python; self = python;
packageOverrides = self: super: { packageOverrides = self: super: {
bleach = super.bleach.overridePythonAttrs (oldAttrs: rec {
version = "5.0.1";
src = fetchPypi {
pname = "bleach";
inherit version;
hash = "sha256-DQMlXEfrm9Lyaqm7fyEHcy5+j+GVyi9kcJ/POwpKCFw=";
};
});
django = super.django_4; django = super.django_4;
django-oauth-toolkit = super.django-oauth-toolkit.overridePythonAttrs (oldAttrs: { django-oauth-toolkit = super.django-oauth-toolkit.overridePythonAttrs (oldAttrs: {
@ -84,7 +94,6 @@ python.pkgs.buildPythonApplication rec {
]; ];
pythonRelaxDeps = [ pythonRelaxDeps = [
"bleach"
"importlib-metadata" "importlib-metadata"
"pillow" "pillow"
"protobuf" "protobuf"

View file

@ -4,6 +4,7 @@
fetchFromGitHub, fetchFromGitHub,
pretix-plugin-build, pretix-plugin-build,
setuptools, setuptools,
django,
drafthorse, drafthorse,
ghostscript_headless, ghostscript_headless,
}: }:
@ -28,10 +29,15 @@ buildPythonPackage rec {
pythonRelaxDeps = [ "drafthorse" ]; pythonRelaxDeps = [ "drafthorse" ];
build-system = [ build-system = [
django
pretix-plugin-build pretix-plugin-build
setuptools setuptools
]; ];
postBuild = ''
make
'';
dependencies = [ drafthorse ]; dependencies = [ drafthorse ];
doCheck = false; # no tests doCheck = false; # no tests