ponysay: fix SyntaxWarning (#357413)

This commit is contained in:
Aleksana 2024-11-29 16:37:24 +08:00 committed by GitHub
commit 1f197e6da2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,6 +23,9 @@ stdenv.mkDerivation rec {
substituteInPlace setup.py --replace \
"fileout.write(('#!/usr/bin/env %s\n' % env).encode('utf-8'))" \
"fileout.write(('#!%s/bin/%s\n' % (os.environ['python3'], env)).encode('utf-8'))"
substituteInPlace src/balloon.py --replace-fail \
$'\'\'\'\n Constructor' \
$'r\'\'\'\n Constructor'
python3 setup.py --prefix=$out --freedom=partial install \
--with-shared-cache=$out/share/ponysay \
--with-bash