From b6444424bf10cf2022f2338fbd37281bcd48388e Mon Sep 17 00:00:00 2001 From: Sizhe Zhao Date: Sun, 8 Jun 2025 12:16:03 +0800 Subject: [PATCH] doclifter: avoid 2to3 --- pkgs/by-name/do/doclifter/package.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/do/doclifter/package.nix b/pkgs/by-name/do/doclifter/package.nix index fb4dff6b5e10..a8972a6d6608 100644 --- a/pkgs/by-name/do/doclifter/package.nix +++ b/pkgs/by-name/do/doclifter/package.nix @@ -18,8 +18,10 @@ stdenv.mkDerivation (finalAttrs: { postPatch = '' substituteInPlace manlifter \ - --replace-fail '/usr/bin/env python2' '/usr/bin/env python3' - 2to3 -w manlifter + --replace-fail '/usr/bin/env python2' '/usr/bin/env python3' \ + --replace-fail 'import thread, threading, Queue' 'import _thread, threading, queue' \ + --replace-fail 'thread.get_ident' '_thread.get_ident' \ + --replace-fail 'Queue.Queue' 'queue.Queue' ''; nativeBuildInputs = [