Unverified Commit b87c7d8a authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

python3Packages.mmengine: fix pytorch 2.5 compatibility (#353095)

parents 7b1cffdd 3ebbc8ad
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch2,

  # build-system
  setuptools,
@@ -41,6 +42,14 @@ buildPythonPackage rec {
    hash = "sha256-bZ6O4UOYUCwq11YmgRWepOIngYxYD/fNfM/VmcyUv9k=";
  };

  patches = [
    (fetchpatch2 {
      name = "mmengine-torch-2.5-compat.patch";
      url = "https://github.com/open-mmlab/mmengine/commit/4c22f78cdea2981a2b48a167e9feffe4721f8901.patch";
      hash = "sha256-k+IFLeqTEVUGGiqmZg56LK64H/UTvpGN20GJT59wf4A=";
    })
  ];

  build-system = [ setuptools ];

  dependencies = [