python3Packages.pytensor: 3.2.4 -> 3.3.0 (#551815)

This commit is contained in:
Weijia Wang
2026-08-16 19:57:19 +00:00
committed by GitHub
2 changed files with 28 additions and 7 deletions

View File

@@ -11,6 +11,7 @@
arviz,
cachetools,
cloudpickle,
matplotlib,
numpy,
pandas,
pytensor,
@@ -22,7 +23,7 @@
buildPythonPackage (finalAttrs: {
pname = "pymc";
version = "6.2.0";
version = "6.3.1";
pyproject = true;
__structuredAttrs = true;
@@ -30,7 +31,7 @@ buildPythonPackage (finalAttrs: {
owner = "pymc-devs";
repo = "pymc";
tag = "v${finalAttrs.version}";
hash = "sha256-90Ui3hiLzU0apYq6YNuAYbqd2JOZ3J7XMh+Lu+C729w=";
hash = "sha256-laLj0Dts4E/7cuhQt/1mekfi/P1L7TiOcypiADs0JAc=";
};
build-system = [
@@ -40,12 +41,14 @@ buildPythonPackage (finalAttrs: {
pythonRelaxDeps = [
"cachetools"
"pytensor"
];
dependencies = [
arviz
cachetools
cloudpickle
# `matplotlib` is an undeclared runtime dependency: the default (`progressbar = True`) sampling
# path imports it in `pymc/progress_bar/rich_progress.py`.
matplotlib
numpy
pandas
pytensor

View File

@@ -3,6 +3,7 @@
stdenv,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,
# build-system
setuptools,
@@ -25,7 +26,6 @@
pytest-benchmark,
pytest-mock,
pytestCheckHook,
tensorflow-probability,
writableTmpDirAsHomeHook,
nix-update-script,
@@ -33,7 +33,7 @@
buildPythonPackage (finalAttrs: {
pname = "pytensor";
version = "3.2.4";
version = "3.3.0";
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-m+uAf5K7biExv8rmOsyCMAVoKSSRAgm0ugw54s2JvMs=";
hash = "sha256-Kq/kLjdDS/NHveeFmoy0PiHLLXviPpU2zf3lcXhx7Sk=";
};
# DeprecationWarning: scipy.linalg: the `lwork` keyword is deprecated and no longer in use as of
@@ -75,6 +75,9 @@ buildPythonPackage (finalAttrs: {
setuptools
];
# `tensorflow-probability` is deliberately omitted: it only unlocks a handful of jax tests but
# drags in `tensorflow-bin`/`tf2onnx`, which fail to evaluate on Python 3.14 and on Darwin.
# Most of them are guarded upstream by `TFP_INSTALLED`, the rest are listed in `disabledTests`.
nativeCheckInputs = [
jax
jaxlib
@@ -82,7 +85,6 @@ buildPythonPackage (finalAttrs: {
pytest-benchmark
pytest-mock
pytestCheckHook
tensorflow-probability
writableTmpDirAsHomeHook
];
@@ -98,6 +100,22 @@ buildPythonPackage (finalAttrs: {
disabledTests = [
# AssertionError: Not equal to tolerance rtol=0.0001, atol=0
"test_Searchsorted"
# `det` of a singular matrix: jax returns -1.3e-116 where numpy returns 0.0
"test_jax_basic"
# NotImplementedError: No JAX implementation for Op {betaincinv,gammainccinv,gammaincinv}.
# These need `tensorflow-probability` but, unlike the other tfp tests, are not guarded
# upstream by `TFP_INSTALLED`.
"test_betaincinv"
"test_gammainccinv"
"test_gammaincinv"
]
++ lib.optionals (pythonAtLeast "3.14") [
# These hardcode `getrefcount(x) == 3`, but CPython 3.14 passes locals to calls as borrowed
# references, so the count is one lower.
"test_sparse_creation_refcount"
"test_sparse_passthrough_refcount"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Numerical assertion error