From 9ec78f5bc16123130c696bee47dd6741b07ac0bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 12 Aug 2024 11:14:08 -0700 Subject: [PATCH] ledger-autosync: fix build with Python 3.12 --- .../office/ledger-autosync/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/applications/office/ledger-autosync/default.nix b/pkgs/applications/office/ledger-autosync/default.nix index 55b89f195e69..6e8f62bbe44e 100644 --- a/pkgs/applications/office/ledger-autosync/default.nix +++ b/pkgs/applications/office/ledger-autosync/default.nix @@ -1,6 +1,7 @@ { lib , python3Packages , fetchFromGitHub +, fetchpatch2 , ledger , hledger , useLedger ? true @@ -20,6 +21,19 @@ python3Packages.buildPythonApplication rec { sha256 = "0n3y4qxsv1cyvyap95h3rj4bj1sinyfgsajygm7s8di3j5aabqr2"; }; + patches = [ + (fetchpatch2 { + name = "drop-distutils.patch"; + url = "https://github.com/egh/ledger-autosync/commit/b7a2a185b9c3b17764322dcc80153410d12e6a5f.patch"; + hash = "sha256-qKuTpsNFuS00yRAH4VGpMA249ml0BGZsGVb75WrBWEo="; + }) + (fetchpatch2 { + name = "drop-imp.patch"; + url = "https://github.com/egh/ledger-autosync/commit/453d92ad279e6c90fadf835d1c39189a1179eb17.patch"; + hash = "sha256-mncMvdWldAnVDy1+bJ+oyDOrUb14v9LrBRz/CYrtYbc="; + }) + ]; + nativeBuildInputs = with python3Packages; [ poetry-core ];