git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.tkinter: use this instead of the output python.tkinter
commit1e544b2993a6aff0b60dd24f47258ebcccba9697 authorFrederik Rietdijk <fridh@fridh.nl> dateWed 12 Oct 2016, 14:57 (10 years ago) parentd3766b2
2 files changed+18−1
doc/languages-frameworks/python.md+1−1 pkgs/top-level/python-packages.nix+17
doc/languages-frameworks/python.md+1−1
@@ -422,7 +422,7 @@ exists.
422422
423423#### Missing `tkinter` module standard library
424424
425−To reduce closure size the `Tkinter`/`tkinter` module is available as `python.tkinter`.
425+To reduce closure size the `Tkinter`/`tkinter` is put in a separate output. The `tkinter` is available as `python35Packages.tkinter`.
426426
427427#### Attributes on interpreters packages
428428
pkgs/top-level/python-packages.nix+17
@@ -24655,6 +24655,23 @@ in {
2465524655 };
2465624656 };
2465724657
24658+ # Tkinter/tkinter is part of the Python standard library.
24659+ # To reduce closure size its put in a separate output, `python.tkinter`.
24660+ # This alias was added to make this output work like any other Python package.
24661+ tkinter = mkPythonDerivation rec {
24662+ name = "tkinter-${python.version}";
24663+ src = python.tkinter;
24664+
24665+ disabled = isPy26 || isPyPy;
24666+
24667+ installPhase = ''
24668+ mkdir -p $out
24669+ cp -R ${python.tkinter}/* $out
24670+ '';
24671+
24672+ inherit (python) meta;
24673+ };
24674+
2465824675 tlslite = buildPythonPackage rec {
2465924676 name = "tlslite-${version}";
2466024677 version = "0.4.8";