From a3783c59897789dd491dbbd5c5329aac1ba28b5a Mon Sep 17 00:00:00 2001 From: Timo Gottszky Date: Thu, 4 Jun 2026 21:04:26 +0200 Subject: [PATCH] python3Packages.executor: fix for python 3.13+ --- .../python-modules/executor/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/executor/default.nix b/pkgs/development/python-modules/executor/default.nix index dd057870b7c1..a240e3db8b7b 100644 --- a/pkgs/development/python-modules/executor/default.nix +++ b/pkgs/development/python-modules/executor/default.nix @@ -2,8 +2,8 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch2, setuptools, - pythonAtLeast, coloredlogs, humanfriendly, property-manager, @@ -19,9 +19,6 @@ buildPythonPackage (finalAttrs: { version = "23.2"; pyproject = true; - # pipes is removed in python 3.13 - disabled = pythonAtLeast "3.13"; - src = fetchFromGitHub { owner = "xolox"; repo = "python-executor"; @@ -29,6 +26,15 @@ buildPythonPackage (finalAttrs: { hash = "sha256-Gjv+sUtnP11cM8GMGkFzXHVx0c2XXSU56L/QwoQxINc="; }; + patches = [ + # https://github.com/xolox/python-executor/pull/26 + (fetchpatch2 { + name = "python313-compat.patch"; + url = "https://github.com/xolox/python-executor/commit/4c5f4b44543bfb48ad790c440d1d7d0933e12499.patch?full_index=1"; + hash = "sha256-pfWdLaREikzBaey75Tb+GiE+pUCl1h2OmsjlpzKOlno="; + }) + ]; + build-system = [ setuptools ];