From 1993c62802c10cabdd4f38f59e4997d9945b8637 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 15 Jun 2026 22:30:19 +0000 Subject: [PATCH] python3Packages.pytensor: 3.0.5 -> 3.0.7 Diff: https://github.com/pymc-devs/pytensor/compare/rel-3.0.5...rel-3.0.7 Changelog: https://github.com/pymc-devs/pytensor/releases/tag/rel-3.0.7 --- pkgs/development/python-modules/pytensor/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytensor/default.nix b/pkgs/development/python-modules/pytensor/default.nix index 6292eef22fc0..5a8eb8e2159d 100644 --- a/pkgs/development/python-modules/pytensor/default.nix +++ b/pkgs/development/python-modules/pytensor/default.nix @@ -33,7 +33,7 @@ buildPythonPackage (finalAttrs: { pname = "pytensor"; - version = "3.0.5"; + version = "3.0.7"; pyproject = true; __structuredAttrs = true; @@ -44,7 +44,7 @@ buildPythonPackage (finalAttrs: { postFetch = '' sed -i 's/git_refnames = "[^"]*"/git_refnames = " (tag: ${finalAttrs.src.tag})"/' $out/pytensor/_version.py ''; - hash = "sha256-99AjktuPPn55ZLPKCv4qdE1lgy9p+NBuaq0vZMVhC50="; + hash = "sha256-/ECRFuRSTXZtBD8EUY3dg0Z4SxLG1+7DzHSWFSAnsoU="; }; build-system = [ @@ -165,6 +165,13 @@ buildPythonPackage (finalAttrs: { # Don't run the most compute-intense tests "tests/scan/" "tests/tensor/" + + # The IndexedElemwise fusion is intentionally disabled on the 3.0.x line + # (it can trigger a RecursionError, see the comment in + # pytensor/tensor/rewriting/indexed_elemwise.py), but these tests still + # assert that the fusion produces an IndexedElemwise node. Upstream test bug. + "tests/link/numba/test_indexed_elemwise.py" + "tests/benchmarks/test_gather_fusion.py" ]; passthru.updateScript = nix-update-script {