python3Packages.funsor: fix build with recent torch (#475165)

This commit is contained in:
Gaétan Lepage
2025-12-29 23:18:07 +00:00
committed by GitHub
@@ -3,6 +3,7 @@
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
fetchpatch,
# build-system
setuptools,
@@ -43,6 +44,14 @@ buildPythonPackage rec {
hash = "sha256-Prj1saT0yoPAP8rDE0ipBEpR3QMk4PS12VSJlxc22p8=";
};
patches = [
# Compatibility with torch >= 2.5 (arg_constraints is now a property)
(fetchpatch {
url = "https://github.com/pyro-ppl/funsor/commit/c5e2a48d73cad4e98058147af4090171272a44e5.patch";
hash = "sha256-sTR+hbJtS0Th5sIqlvB2bReEC0wnEbnB7gAiZKiqjAQ=";
})
];
build-system = [ setuptools ];
dependencies = [