Remove pretix
This commit is contained in:
parent
391e4dd825
commit
2fe63eab34
12 changed files with 0 additions and 376 deletions
|
|
@ -23,7 +23,6 @@ in
|
|||
inherit poetry2nix;
|
||||
};
|
||||
pomodoro-timer = callPackage ./pomodoro-timer { };
|
||||
pretix-banktool = callPackage ./pretix-banktool { };
|
||||
tabbed-box-maker = callPackage ./tabbed-box-maker { };
|
||||
vesc-firmware = callPackage ./vesc-tool/firmware.nix { };
|
||||
vesc-tool = callPackage ./vesc-tool/tool.nix { };
|
||||
|
|
|
|||
|
|
@ -3,6 +3,5 @@
|
|||
./asterisk-sounds-de/module.nix
|
||||
./ksoloti/module.nix
|
||||
./myintercom-doorbell/module.nix
|
||||
./pretix-banktool/module.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,27 +0,0 @@
|
|||
{ python3Packages, fetchFromGitHub }:
|
||||
python3Packages.buildPythonApplication rec {
|
||||
name = "pretix-banktool";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pretix";
|
||||
repo = "pretix-banktool";
|
||||
rev = "v${version}";
|
||||
sha256 = "vYHjotx1RujPV53Ei7bXAc3kL/3cwbWQB1T3sQ15MFA=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./requirements.patch
|
||||
];
|
||||
|
||||
buildInputs = with python3Packages; [
|
||||
pip
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
click
|
||||
fints
|
||||
mt-940
|
||||
requests
|
||||
];
|
||||
}
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.services.pretix-banktool;
|
||||
in
|
||||
{
|
||||
options.services.pretix-banktool = with lib; with lib.types; {
|
||||
enable = mkEnableOption "Enable tool to query bank account and sync transaction data to pretix server.";
|
||||
days = mkOption {
|
||||
type = types.int;
|
||||
description = "The timeframe of transaction to fetch from the bank in days.";
|
||||
};
|
||||
secretsFile = mkOption {
|
||||
type = types.path;
|
||||
description = ''
|
||||
Path of file containing secrets for pretix banktool.
|
||||
'';
|
||||
};
|
||||
};
|
||||
config = {
|
||||
systemd.services.pretix-banktool = lib.mkIf cfg.enable {
|
||||
description = "Tool to query bank account and sync transaction data to pretix server.";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
DynamicUser = true;
|
||||
CapabilityBoundingSet = null;
|
||||
PrivateUsers = true;
|
||||
ProtectHome = true;
|
||||
RestrictAddressFamilies = [ "AF_INET" "AF_INET6" ];
|
||||
RestrictNamespaces = true;
|
||||
SystemCallFilter = "@system-service";
|
||||
LoadCredential = "config:${cfg.secretsFile}";
|
||||
};
|
||||
script = "${pkgs.pretix-banktool}/bin/pretix-banktool upload \"$CREDENTIALS_DIRECTORY/config\" --days=${toString cfg.days}";
|
||||
};
|
||||
|
||||
systemd.timers.pretix-banktool = lib.mkIf cfg.enable {
|
||||
description = "Run tool to query bank account and sync transaction data to pretix server.";
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
Persistent = true;
|
||||
OnCalendar = "*-*-* *:00:00";
|
||||
Unit = "pretix-banktool.service";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
diff --git a/setup.py b/setup.py
|
||||
index 2eba88a..7041acd 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -19,8 +19,8 @@ setup(
|
||||
author_email='mail@raphaelmichel.de',
|
||||
|
||||
install_requires=[
|
||||
- 'click==6.*',
|
||||
- 'fints>=3.0.*',
|
||||
+ 'click>=6,<8.2',
|
||||
+ 'fints>=3,<4.1',
|
||||
'requests',
|
||||
- 'mt-940>=4.12*',
|
||||
+ 'mt-940==4.30.0',
|
||||
],
|
||||
--
|
||||
2.38.3
|
||||
Loading…
Add table
Add a link
Reference in a new issue