From 88e9b2dfd225e25c25768635baedb8cfaa553b31 Mon Sep 17 00:00:00 2001 From: Cameron Brown Date: Fri, 22 May 2026 23:54:45 -0400 Subject: [PATCH] beancount: 3.2.0 -> 3.2.3 --- .../python-modules/beancount/default.nix | 22 +++++++------------ 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/beancount/default.nix b/pkgs/development/python-modules/beancount/default.nix index cc2b0bafc2dc..30c70abcf82b 100644 --- a/pkgs/development/python-modules/beancount/default.nix +++ b/pkgs/development/python-modules/beancount/default.nix @@ -16,7 +16,7 @@ }: buildPythonPackage rec { - version = "3.2.0"; + version = "3.2.3"; pname = "beancount"; pyproject = true; @@ -24,21 +24,15 @@ buildPythonPackage rec { owner = "beancount"; repo = "beancount"; tag = version; - hash = "sha256-XWTgaBvB4/SONL44afvprZwJUVrkoda5XLGNxad0kec="; + hash = "sha256-WM8SM2ZHphafzXHyVi4Fo9tgsClAnmLsZKZUsf2Twmg="; }; - patches = [ - (fetchpatch2 { - name = "accept-date-range-error-message-from-py3.14"; - url = "https://salsa.debian.org/python-team/packages/beancount/-/raw/debian/sid/debian/patches/0003-Accept-date-range-error-message-from-py3.14.patch"; - hash = "sha256-wqMTGSi4Gn5VADjV4MjZhFNWB3ThUhxvLYK7sentScQ="; - }) - (fetchpatch2 { - name = "skip-ref-count-test-with-py3.14"; - url = "https://salsa.debian.org/python-team/packages/beancount/-/raw/debian/sid/debian/patches/0004-Skip-refcount-test-with-py3.14.patch"; - hash = "sha256-6P9xe15WBGaWpVYB2HfGfFHLMMmGkfnDwdjdktlSNxk="; - }) - ]; + postPatch = '' + # We don't need the python binary wrappers, since we provide them via nativeBuildInputs + substituteInPlace pyproject.toml \ + --replace-fail "'flex-bin ; sys_platform == \"linux\" or sys_platform == \"darwin\"'," "" \ + --replace-fail "'bison-bin ; sys_platform == \"linux\" or sys_platform == \"darwin\"'," "" + ''; build-system = [ meson