From 67c66d87d15f13e92fcaf3e62588851e6d089c3c Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Mar 2024 02:51:33 +0100 Subject: [PATCH] pretix.plugins.pages: init at 1.6.0 Plugin to add static pages to your pretix event --- pkgs/by-name/pr/pretix/plugins/default.nix | 2 ++ pkgs/by-name/pr/pretix/plugins/pages.nix | 37 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/by-name/pr/pretix/plugins/pages.nix diff --git a/pkgs/by-name/pr/pretix/plugins/default.nix b/pkgs/by-name/pr/pretix/plugins/default.nix index aa5541525293..e90f472d43ba 100644 --- a/pkgs/by-name/pr/pretix/plugins/default.nix +++ b/pkgs/by-name/pr/pretix/plugins/default.nix @@ -3,5 +3,7 @@ }: { + pages = callPackage ./pages.nix { }; + passbook = callPackage ./passbook.nix { }; } diff --git a/pkgs/by-name/pr/pretix/plugins/pages.nix b/pkgs/by-name/pr/pretix/plugins/pages.nix new file mode 100644 index 000000000000..91f8ef032f77 --- /dev/null +++ b/pkgs/by-name/pr/pretix/plugins/pages.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pretix-plugin-build +, setuptools +}: + +buildPythonPackage rec { + pname = "pretix-pages"; + version = "1.6.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "pretix"; + repo = "pretix-pages"; + rev = "v${version}"; + hash = "sha256-cO5tAiOifLpqFEQwYgrGoByUecpzvue8YmChpPwm+y0="; + }; + + build-system = [ + pretix-plugin-build + setuptools + ]; + + doCheck = false; # no tests + + pythonImportsCheck = [ + "pretix_pages" + ]; + + meta = with lib; { + description = "Plugin to add static pages to your pretix event"; + homepage = "https://github.com/pretix/pretix-pages"; + license = licenses.asl20; + maintainers = with maintainers; [ hexa ]; + }; +}