nixpkgs/pkgs/by-name/pr/pretix-banktool/package.nix
Martin Weinelt a30d7bea2c
pretix-banktool: init at 1.0.0
Import bank transaction from FinTS into Pretix.
2024-08-06 23:10:56 +02:00

48 lines
1.1 KiB
Nix

{
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";
};
}