pypy3Packages.tkinter: enable and make no-op

PyPy always includes the tkinter module without further setup.
This commit is contained in:
FliegendeWurst
2025-02-03 13:29:25 +01:00
parent e0464e4788
commit 99f01c15fa
@@ -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