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