From bcd242f02e85f74c63d633eb3be9ead173297a43 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 29 Jul 2025 23:16:02 +0100 Subject: [PATCH] =?UTF-8?q?python313Packages.mypy:=20fix=20build=20on=20Da?= =?UTF-8?q?rwin=20with=20case=E2=80=90sensitive=20store?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 79a0cd86947f..01b502c88ed9 100644 --- a/pkgs/development/python-modules/mypy/default.nix +++ b/pkgs/development/python-modules/mypy/default.nix @@ -3,6 +3,7 @@ stdenv, buildPythonPackage, fetchFromGitHub, + fetchpatch, gitUpdater, pythonAtLeast, pythonOlder, @@ -46,6 +47,15 @@ buildPythonPackage rec { hash = "sha256-y67kt5i8mT9TcSbUGwnNuTAeqjy9apvWIbA2QD96LS4="; }; + patches = [ + # Fix the build on Darwin with a case‐sensitive store. + # Remove on next release. + (fetchpatch { + url = "https://github.com/python/mypy/commit/7534898319cb7f16738c11e4bc1bdcef0eb13c38.patch"; + hash = "sha256-5jD0JBRnirmoMlUz9+n8G4AqHqCi8BaUX5rEl9NnLts="; + }) + ]; + passthru.updateScript = gitUpdater { rev-prefix = "v"; };