Gaetan Lepage
2026-07-11 21:37:58 +00:00
parent e409745df7
commit 13f27af73b
@@ -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"