about summary refs log tree commit diff
path: root/pkgs/top-level/all-packages.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/top-level/all-packages.nix')
-rw-r--r--pkgs/top-level/all-packages.nix208
1 files changed, 47 insertions, 161 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index f2145a2f2823..2b7358b824ba 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1234,7 +1234,7 @@ let
     # I did not find any better way of reusing buildPythonPackage+setuptools
     # for a python with openssl support
     buildPythonPackage = assert pythonFull.opensslSupport;
-      import ../development/python-modules/generic {
+      import ../development/python2-packages/generic {
         inherit makeWrapper lib;
         python = pythonFull;
         setuptools = builderDefsPackage (import ../development/python-modules/setuptools) {
@@ -1423,24 +1423,6 @@ let
     inherit fetchurl stdenv python emacs;
   };
 
-  pystringtemplate = import ../development/python-modules/stringtemplate {
-    inherit stdenv fetchurl python antlr;
-  };
-
-  pythonDBus = builderDefsPackage (import ../development/python-modules/dbus) {
-    inherit python pkgconfig dbus_glib;
-    dbus = dbus.libs;
-  };
-
-  pythonIRClib = builderDefsPackage (import ../development/python-modules/irclib) {
-    inherit python;
-  };
-
-  pythonSexy = builderDefsPackage (import ../development/python-modules/libsexy) {
-    inherit python libsexy pkgconfig libxml2 pygtk;
-    inherit (gtkLibs) pango gtk glib;
-  };
-
   openmpi = import ../development/libraries/openmpi {
     inherit fetchurl stdenv;
   };
@@ -1862,10 +1844,6 @@ let
     inherit fetchurl perl perlPackages;
   };
 
-  xmpppy = builderDefsPackage (import ../development/python-modules/xmpppy) {
-    inherit python setuptools;
-  };
-
   xpf = import ../tools/text/xml/xpf {
     inherit fetchurl stdenv python;
     libxml2 = libxml2Python;
@@ -2664,16 +2642,6 @@ let
     inherit stdenv fetchurl;
   };
 
-  python = if getConfig ["python" "full"] false then pythonFull else pythonBase;
-  python25 = if getConfig ["python" "full"] false then python25Full else python25Base;
-  python26 = if getConfig ["python" "full"] false then python26Full else python26Base;
-  pythonBase = python26Base;
-  pythonFull = python26Full;
-
-  python24 = import ../development/interpreters/python/2.4 {
-    inherit fetchurl stdenv zlib bzip2;
-  };
-
   python25Base = composedArgsAndFun (import ../development/interpreters/python/2.5) {
     inherit fetchurl stdenv zlib bzip2 gdbm;
   };
@@ -2708,6 +2676,19 @@ let
     xproto = if getConfig ["python" "tkSupport"] true then xlibs.xproto else null;
   };
 
+
+  python31Base = composedArgsAndFun (import ../development/interpreters/python/3.1) {
+    inherit fetchurl stdenv zlib bzip2 gdbm;
+    arch = if stdenv.isDarwin then darwinArchUtility else null;
+    sw_vers = if stdenv.isDarwin then darwinSwVersUtility else null;
+  };
+
+  python = if getConfig ["python" "full"] false then pythonFull else pythonBase;
+  python25 = if getConfig ["python" "full"] false then python25Full else python25Base;
+  python26 = if getConfig ["python" "full"] false then python26Full else python26Base;
+  pythonBase = python26Base;
+  pythonFull = python26Full;
+
   # new python and lib proposal
   # - adding a python lib to buildinputs should be enough
   #   (handles .pth files by patching site.py
@@ -5291,142 +5272,47 @@ let
 
   ### DEVELOPMENT / PYTHON MODULES
 
-  buildPythonPackage =
-    import ../development/python-modules/generic {
-      inherit python setuptools makeWrapper lib;
-    };
-
-  buildPython26Package =
-    import ../development/python-modules/generic {
-      inherit makeWrapper lib;
-      python = python26;
-      setuptools = setuptools_python26;
-    };
-
-  pythonPackages = python26Packages;
-
-  python25Packages = recurseIntoAttrs (import ./python-packages.nix {
-    inherit pkgs python buildPythonPackage;
+  python25Packages = recurseIntoAttrs( import ../development/python2-packages {
+    inherit pkgs makeWrapper;
+    python = python25;
   });
 
-  python26Packages = recurseIntoAttrs (import ./python-packages.nix {
-    inherit pkgs;
+  python26Packages = recurseIntoAttrs( import ../development/python2-packages {
+    inherit pkgs makeWrapper;
     python = python26;
-    buildPythonPackage = buildPython26Package;
   });
 
-  foursuite = import ../development/python-modules/4suite {
-    inherit fetchurl stdenv python;
-  };
-
-  bsddb3 = import ../development/python-modules/bsddb3 {
-    inherit fetchurl stdenv python db4;
-  };
-
-  flup = builderDefsPackage ../development/python-modules/flup {
-    inherit fetchurl stdenv;
-    python = python25;
-    setuptools = setuptools.passthru.function {python = python25;};
-  };
-
-  numeric = import ../development/python-modules/numeric {
-    inherit fetchurl stdenv python;
-  };
-
-  pil = import ../development/python-modules/pil {
-    inherit fetchurl stdenv python zlib libjpeg freetype;
-  };
-
-  psyco = import ../development/python-modules/psyco {
-    inherit fetchurl stdenv python;
-  };
-
-  pycairo = import ../development/python-modules/pycairo {
-    inherit fetchurl stdenv python pkgconfig cairo x11;
-  };
-
-  pycrypto = import ../development/python-modules/pycrypto {
-    inherit fetchurl stdenv python gmp;
-  };
-
-  pycups = import ../development/python-modules/pycups {
-    inherit stdenv fetchurl python cups;
-  };
-
-  pygame = import ../development/python-modules/pygame {
-    inherit fetchurl stdenv python pkgconfig SDL SDL_image
-      SDL_mixer SDL_ttf numeric;
-  };
-
-  pygobject = import ../development/python-modules/pygobject {
-    inherit fetchurl stdenv python pkgconfig glib;
-  };
-
-  pygtk = import ../development/python-modules/pygtk {
-    inherit fetchurl stdenv python pkgconfig pygobject pycairo;
-    inherit (gtkLibs) glib gtk;
-  };
-
-  pyGtkGlade = import ../development/python-modules/pygtk {
-    inherit fetchurl stdenv python pkgconfig pygobject pycairo;
-    inherit (gtkLibs) glib gtk;
-    inherit (gnome) libglade;
-  };
-
-  pyopenssl = builderDefsPackage (import ../development/python-modules/pyopenssl) {
-    inherit python openssl;
-  };
-
-  rhpl = import ../development/python-modules/rhpl {
-    inherit stdenv fetchurl rpm cpio python wirelesstools gettext;
-  };
-
-  sip = import ../development/python-modules/python-sip {
-    inherit stdenv fetchurl python;
-  };
-
-  pyqt4 = import ../development/python-modules/pyqt {
-    inherit stdenv fetchurl python qt4 sip;
-  };
-
-  pyx = import ../development/python-modules/pyx {
-    inherit fetchurl stdenv python makeWrapper;
-  };
-
-  pyxml = import ../development/python-modules/pyxml {
-    inherit fetchurl stdenv python makeWrapper;
-  };
-
-  setuptools = builderDefsPackage (import ../development/python-modules/setuptools) {
-    inherit python makeWrapper;
-  };
-
-  setuptools_python26 = builderDefsPackage (import ../development/python-modules/setuptools) {
-    inherit makeWrapper;
-    python = python26;
-  };
-
-  wxPython = wxPython26;
-
-  wxPython26 = import ../development/python-modules/wxPython/2.6.nix {
-    inherit fetchurl stdenv pkgconfig python;
-    wxGTK = wxGTK26;
-  };
-
-  wxPython28 = import ../development/python-modules/wxPython/2.8.nix {
-    inherit fetchurl stdenv pkgconfig python;
-    inherit wxGTK;
-  };
+  pythonPackages = python26Packages;
+  buildPythonPackage = pythonPackages.buildPythonPackage;
 
+  # global python library aliases:
+  pycrypto = pythonPackages.pycrypto;
   twisted = pythonPackages.twisted;
+  pygtk = pythonPackages.pygtk;
+  pygobject = pythonPackages.pygobject;
+  pycairo = pythonPackages.pycairo;
+  pyGtkGlade = pythonPackages.pyGtkGlade;
+  pythonDBus = pythonPackages.pythonDBus;
+  setuptools = pythonPackages.setuptools;
+  pil = pythonPackages.pil;
+  pythonIRClib = pythonPackages.pythonIRClib;
+  pyxml = pythonPackages.pyxml;
+  pyopengl = pythonPackages.pyopengl;
+  pygame = pythonPackages.pygame;
+  flup = pythonPackages.flup;
+  numeric = pythonPackages.numeric;
+  pyqt4 = pythonPackages.pyqt4;
+  sip410 = pythonPackages.sip410;
+  pyopenssl = pythonPackages.pyopenssl;
+  pythonSexy = pythonPackages.pythonSexy;
+  wxPython = wxPython26;
+  sip = pythonPackages.sip;
+  xmpppy = pythonPackages.xmpppy;
 
-  ZopeInterface = pythonPackages.zopeInterface;
-
-  zope = import ../development/python-modules/zope {
-    inherit fetchurl stdenv;
-    python = python24;
-  };
-
+  # 2.6 aliases
+  wxPython26 = python26Packages.wxPython;
+  pil_python26 = python26Packages.pil;
+ 
   ### SERVERS