From 13f27af73b4687fa1b4497b36443698c53da31a2 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 11 Jul 2026 20:29:25 +0000 Subject: [PATCH] python3Packages.pytensor: 3.1.2 -> 3.1.3 Diff: https://github.com/pymc-devs/pytensor/compare/rel-3.1.2...rel-3.1.3 Changelog: https://github.com/pymc-devs/pytensor/releases/tag/rel-3.1.3 --- .../python-modules/pytensor/default.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pytensor/default.nix b/pkgs/development/python-modules/pytensor/default.nix index c6115797ae12..0741e59af6ba 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.1.2"; + version = "3.1.3"; pyproject = true; __structuredAttrs = true; @@ -44,9 +44,16 @@ buildPythonPackage (finalAttrs: { postFetch = '' sed -i 's/git_refnames = "[^"]*"/git_refnames = " (tag: ${finalAttrs.src.tag})"/' $out/pytensor/_version.py ''; - hash = "sha256-kKfbVSWsaA9ytii4GXeEmE+Oq8Qi7QNUOozgemqJI+k="; + hash = "sha256-9Apjyg+wmAWrK7hMSF54b1u/3TT0GGitDlyF6rQA4OY="; }; + # DeprecationWarning: scipy.linalg: the `lwork` keyword is deprecated and no longer in use as of + # SciPy 1.18.0 and will be removed in SciPy 1.20.0 + postPatch = '' + substituteInPlace pytensor/link/numba/dispatch/linalg/decomposition/qr.py \ + --replace-fail "lwork=lwork," "" + ''; + build-system = [ setuptools cython @@ -85,7 +92,11 @@ buildPythonPackage (finalAttrs: { rm -rf pytensor ''; - disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ + disabledTests = [ + # AssertionError: Not equal to tolerance rtol=0.0001, atol=0 + "test_Searchsorted" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Numerical assertion error # tests.unittest_tools.WrongValue: WrongValue "test_op_sd"