python: add isPy2 attribute to passthru

Some packages relied on it. For consistency, also introduce isPy3 (which
is the same as isPy3k).
This commit is contained in:
Frederik Rietdijk
2019-01-04 12:31:42 +01:00
parent 29ee864e93
commit 63bcd07888
3 changed files with 5 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ buildPythonPackage rec {
++ stdenv.lib.optionals enableGtk3 [ cairo pycairo gtk3 gobject-introspection pygobject3 ]
++ stdenv.lib.optionals enableTk [ tcl tk tkinter libX11 ]
++ stdenv.lib.optionals enableQt [ pyqt4 ]
++ stdenv.lib.optionals (builtins.hasAttr "isPy2" python) [ functools32 subprocess32 ];
++ stdenv.lib.optionals python.isPy2 [ functools32 subprocess32 ];
patches =
[ ./basedirlist.patch ] ++