Skip to content

Commit

Permalink
pypy3Packages.tkinter: enable and make no-op (NixOS#379087)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Feb 3, 2025
2 parents 494b240 + 99f01c1 commit 68392b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/development/python-modules/tkinter/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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
Expand Down

0 comments on commit 68392b6

Please sign in to comment.