python312Packages.mypy: fix test with Python 3.12.7

This commit is contained in:
Martin Weinelt
2024-10-13 11:09:54 +02:00
parent 48d0511af5
commit c00441e179
@@ -3,6 +3,7 @@
stdenv,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
gitUpdater,
pythonAtLeast,
pythonOlder,
@@ -45,6 +46,15 @@ buildPythonPackage rec {
rev = "refs/tags/v${version}";
hash = "sha256-5gfqIBtI/G5HARYdXHjYNYNRxeNgrk9dnpSgvMSu9bw=";
};
patches = [
(fetchpatch2 {
name = "python3.12.7-compat.patch";
url = "https://github.com/python/mypy/commit/1a2c8e2a4df21532e4952191cad74ae50083f4ad.patch";
hash = "sha256-GBQPTkdoLeErjbRUjZBFEwvCcN/WzC3OYVvou6M+f80=";
})
];
passthru.updateScript = gitUpdater {
rev-prefix = "v";
};