python312Packages.einops: fix compatibility with numpy>=2

This commit is contained in:
natsukium
2024-11-18 18:36:50 +01:00
committed by Martin Weinelt
parent a31c91d2e0
commit b41a83676e
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
hatchling,
jupyter,
nbconvert,
@@ -26,6 +27,15 @@ buildPythonPackage rec {
hash = "sha256-6x9AttvSvgYrHaS5ESKOwyEnXxD2BitYTGtqqSKur+0=";
};
patches = [
# https://github.com/arogozhnikov/einops/pull/325
(fetchpatch2 {
name = "numpy_2-compatibility.patch";
url = "https://github.com/arogozhnikov/einops/commit/11680b457ce2216d9827330d0b794565946847d7.patch";
hash = "sha256-OKWp319ClYarNrek7TdRHt+NKTOEfBdJaV0U/6vLeMc=";
})
];
nativeBuildInputs = [ hatchling ];
nativeCheckInputs = [