doclifter: avoid 2to3

This commit is contained in:
Sizhe Zhao
2025-06-08 12:16:03 +08:00
parent 58e6bb171e
commit b6444424bf
+4 -2
View File
@@ -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 = [