From 42fb94a04caea94c4ece0c22da8bbb11ef77500e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Fri, 13 Sep 2024 16:05:01 +0200 Subject: [PATCH] python312Packages.executing: patch build with python-3.12.5 --- pkgs/development/python-modules/executing/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/executing/default.nix b/pkgs/development/python-modules/executing/default.nix index 7eb94f3b13481..68617d003475e 100644 --- a/pkgs/development/python-modules/executing/default.nix +++ b/pkgs/development/python-modules/executing/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, pythonAtLeast, pythonOlder, @@ -30,6 +31,13 @@ buildPythonPackage rec { hash = "sha256-PBvfkv9GQ5Vj5I5SygtmHXtqqHMJ4XgNV1/I+lSU0/U="; }; + patches = lib.optionals (pythonAtLeast "3.12") [ + (fetchpatch { # https://github.com/alexmojaki/executing/pull/83 + url = "https://github.com/alexmojaki/executing/commit/230ef110f004a8cecf03e983561f26a5fecede8f.diff"; + hash = "sha256-McMUIbOWozoDDQSfrJqcxBjuAZ/rrHePfqp5+AVUKI4="; + }) + ]; + nativeBuildInputs = [ setuptools setuptools-scm