Unverified Commit 68392b6b authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

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

parents 494b2407 99f01c15
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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