From 96e76d543268659d807f5d87e07a0e2fe4f0d4b8 Mon Sep 17 00:00:00 2001 From: Andrei Lapshin Date: Fri, 19 Sep 2025 11:47:27 +0200 Subject: [PATCH] python3Packages.beanquery: Fix build with beancount 3.2.0 --- pkgs/development/python-modules/beanquery/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/beanquery/default.nix b/pkgs/development/python-modules/beanquery/default.nix index 9e016ec860fc..fad735aa6a8d 100644 --- a/pkgs/development/python-modules/beanquery/default.nix +++ b/pkgs/development/python-modules/beanquery/default.nix @@ -4,6 +4,7 @@ click, buildPythonPackage, fetchFromGitHub, + fetchpatch2, python-dateutil, pytestCheckHook, setuptools, @@ -21,6 +22,14 @@ buildPythonPackage rec { hash = "sha256-O7+WCF7s50G14oNTvJAOTvgSoNR9fWcn/m1jv7RHmK8="; }; + patches = [ + (fetchpatch2 { + name = "beancount-workaround.patch"; + url = "https://github.com/beancount/beanquery/commit/aa0776285a25baeedf151e9f582bef0314f76004.patch?full_index=1"; + hash = "sha256-hWL1CDsBSbMqufEQrtEncmyUr5L5VJI+i4xQtnAvQd8="; + }) + ]; + build-system = [ setuptools ]; dependencies = [