From acd3447f9fc95320140945b8b8f2cad9074e4763 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 4 Dec 2024 00:36:58 +0100 Subject: [PATCH] python312Packages.pytensor: 2.26.3 -> 2.26.4 Diff: https://github.com/pymc-devs/pytensor/compare/refs/tags/rel-2.26.3...rel-2.26.4 Changelog: https://github.com/pymc-devs/pytensor/releases/tag/rel-2.26.4 --- .../python-modules/pytensor/default.nix | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pytensor/default.nix b/pkgs/development/python-modules/pytensor/default.nix index 32451fd52ed64..8f775149f1f50 100644 --- a/pkgs/development/python-modules/pytensor/default.nix +++ b/pkgs/development/python-modules/pytensor/default.nix @@ -17,27 +17,29 @@ numpy, scipy, - # checks + # tests jax, jaxlib, numba, - pytestCheckHook, + pytest-benchmark, pytest-mock, + pytestCheckHook, tensorflow-probability, + pythonAtLeast, nix-update-script, }: buildPythonPackage rec { pname = "pytensor"; - version = "2.26.3"; + version = "2.26.4"; pyproject = true; src = fetchFromGitHub { owner = "pymc-devs"; repo = "pytensor"; - rev = "refs/tags/rel-${version}"; - hash = "sha256-RhicZSVkaDtIngIOvzyEQ+VMZwdV45wDk7e7bThTIh8="; + tag = "rel-${version}"; + hash = "sha256-pREyBedkF9MW7g3Bctnk8C9vVbRTsLLreldxlqDdHVI="; }; pythonRelaxDeps = [ @@ -63,8 +65,9 @@ buildPythonPackage rec { jax jaxlib numba - pytestCheckHook + pytest-benchmark pytest-mock + pytestCheckHook tensorflow-probability ]; @@ -153,6 +156,11 @@ buildPythonPackage rec { "test_unbroadcast" "test_update_equiv" "test_update_same" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # Flaky: TypeError: cannot pickle 'PyCapsule' object + "test_blockwise" + "test_blockwise_benchmark" ]; disabledTestPaths = [ @@ -173,7 +181,7 @@ buildPythonPackage rec { description = "Python library to define, optimize, and efficiently evaluate mathematical expressions involving multi-dimensional arrays"; mainProgram = "pytensor-cache"; homepage = "https://github.com/pymc-devs/pytensor"; - changelog = "https://github.com/pymc-devs/pytensor/releases/tag/${lib.removePrefix "refs/tags/" src.rev}"; + changelog = "https://github.com/pymc-devs/pytensor/releases/tag/rel-${version}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ bcdarwin