pypy3Packages.tkinter: enable and make no-op (#379087)

This commit is contained in:
Sandro
2025-02-03 22:08:04 +01:00
committed by GitHub
@@ -13,9 +13,8 @@ buildPythonPackage {
src = py;
format = "other";
disabled = isPyPy;
installPhase =
# tkinter is included in PyPy, making this package a no-op.
installPhase = lib.optionalString (!isPyPy) (
''
# Move the tkinter module
mkdir -p $out/${py.sitePackages}
@@ -26,7 +25,8 @@ buildPythonPackage {
old_rpath=$(patchelf --print-rpath $out/${py.sitePackages}/_tkinter*)
new_rpath=$(sed "s#${py}#${python}#g" <<< "$old_rpath" )
patchelf --set-rpath $new_rpath $out/${py.sitePackages}/_tkinter*
'';
''
);
meta = py.meta // {
# Based on first sentence from https://docs.python.org/3/library/tkinter.html