Unverified Commit 99cd4ffa authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

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

parents 1138e87c 98ccf946
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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 = [