From a30d7bea2c0ef57f64df6b357347bd4da4af9b01 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 6 Aug 2024 22:08:02 +0200 Subject: [PATCH] pretix-banktool: init at 1.0.0 Import bank transaction from FinTS into Pretix. --- pkgs/by-name/pr/pretix-banktool/package.nix | 48 +++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 pkgs/by-name/pr/pretix-banktool/package.nix diff --git a/pkgs/by-name/pr/pretix-banktool/package.nix b/pkgs/by-name/pr/pretix-banktool/package.nix new file mode 100644 index 000000000000..9628e2dbda72 --- /dev/null +++ b/pkgs/by-name/pr/pretix-banktool/package.nix @@ -0,0 +1,48 @@ +{ + lib, + python3Packages, + fetchFromGitHub, + fetchpatch2, +}: + +python3Packages.buildPythonApplication rec { + pname = "pretix-banktool"; + version = "1.0.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "pretix"; + repo = "pretix-banktool"; + rev = "v${version}"; + hash = "sha256-vYHjotx1RujPV53Ei7bXAc3kL/3cwbWQB1T3sQ15MFA="; + }; + + patches = [ + (fetchpatch2 { + # migrate to pyproject.toml, relax constraints + url = "https://github.com/pretix/pretix-banktool/commit/48a8125aba86d70f62c2b1f88bcf21c783402589.patch"; + hash = "sha256-HbVzWoI5LlNyh0MZnPsLmzu7RMY8/BDfOwgDWMD+k5w="; + }) + ]; + + build-system = with python3Packages; [ setuptools ]; + + dependencies = with python3Packages; [ + click + fints + requests + mt-940 + ]; + + doCheck = false; # no tests + + pythonImportsCheck = [ "pretix_banktool" ]; + + meta = with lib; { + description = "Automatic bank data upload tool for pretix (with FinTS client)"; + homepage = "https://github.com/pretix/pretix-banktool"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ hexa ]; + mainProgram = "pretix-banktool"; + }; +}