From ba0e4b850e388aad09c0c39e692d9faed264f3fc Mon Sep 17 00:00:00 2001 From: Ben Wolsieffer Date: Sat, 18 Mar 2023 14:27:52 -0400 Subject: [PATCH] python3Packages.mypy: fix setuptools integration This patch updates the patch used to fix compatibility with the latest version of types-setuptools. The previous version of the patch caused mypycify() to fail with the following error: UnboundLocalError: local variable "extension_class" referenced before assignment The new version of the patch fixes this issue and is the version that was accepted upstream. --- pkgs/development/python-modules/mypy/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/mypy/default.nix b/pkgs/development/python-modules/mypy/default.nix index e7debfaceb87..012c952a9800 100644 --- a/pkgs/development/python-modules/mypy/default.nix +++ b/pkgs/development/python-modules/mypy/default.nix @@ -53,8 +53,9 @@ buildPythonPackage rec { }) (fetchpatch { # https://github.com/python/mypy/pull/14787 - url = "https://github.com/AlexWaygood/mypy/commit/8e459eab40ac0fae9740e985ee4aeb348cde28c5.patch"; - hash = "sha256-R7DU6MFnaeHPobUb8ADhssTKDwdPBXBhDN2mxrrQ51M="; + url = "https://github.com/python/mypy/commit/243f584d43e6eb316920f3155067ce7c1b65d473.patch"; + hash = "sha256-uuh3S5ZyuJeTXyMvav2uSEao2qq23xMjK8rJjkY8RCY="; + includes = [ "mypyc/build.py" ]; }) ];