From c00441e179bbd9ff8ca764a70e3886ccfe490913 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 3 Oct 2024 01:50:46 +0200 Subject: [PATCH] python312Packages.mypy: fix test with Python 3.12.7 --- pkgs/development/python-modules/mypy/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/mypy/default.nix b/pkgs/development/python-modules/mypy/default.nix index 465d7895009d6..e43f0e1bd1a29 100644 --- a/pkgs/development/python-modules/mypy/default.nix +++ b/pkgs/development/python-modules/mypy/default.nix @@ -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"; };