1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

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

This commit is contained in:
Weijia Wang 2024-11-02 22:55:45 +01:00 committed by GitHub
commit b87c7d8ab5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = [