anchor.diff:      inherit mpi4py;
     };
   
  -  ipython = import ../shells/ipython {
  -    inherit (pkgs) stdenv fetchurl sip pyqt4;
  -    inherit buildPythonPackage pythonPackages;
  +  ipython = callPackage ../shells/ipython {
       qtconsoleSupport = !pkgs.stdenv.isDarwin; # qt is not supported on darwin
       pylabQtSupport = !pkgs.stdenv.isDarwin;
       pylabSupport = !pkgs.stdenv.isDarwin; # cups is not supported on darwin
     };
   
  -  ipythonLight = lowPrio (import ../shells/ipython {
  -    inherit (pkgs) stdenv fetchurl;
  -    inherit buildPythonPackage pythonPackages;
  +  ipythonLight = lowPrio (ipython.override {
       qtconsoleSupport = false;
       pylabSupport = false;
       pylabQtSupport = false;
     });
   
     mpi4py = callPackage ../development/python-modules/mpi4py {
  -    inherit (pkgs) stdenv fetchurl openssh;
  -    inherit python buildPythonPackage;
       mpi = pkgs.openmpi;
     };
   
  
positive.code: 
    # specials
  
    recursivePthLoader = import ../development/python-modules/recursive-pth-loader {
      inherit (pkgs) stdenv;
      inherit python;
    };
  
    setuptools = import ../development/python-modules/setuptools {
      inherit (pkgs) stdenv fetchurl;
      inherit python wrapPython distutils-cfg;
    };
  
    # packages defined elsewhere
  
    blivet = callPackage ../development/python-modules/blivet { };
  
    dbus = import ../development/python-modules/dbus {
      inherit (pkgs) stdenv fetchurl pkgconfig dbus dbus_glib dbus_tools;
      inherit python isPyPy;
    };
  
    discid = buildPythonPackage rec {
  
negative.code:     if isPy34 then "python34" else
      if isPyPy then "pypy" else "";
  
    modules = python.modules or {
      readline = null;
      sqlite3 = null;
      curses = null;
      curses_panel = null;
      ssl = null;
      crypt = null;
    };
  
    pythonPackages = modules // import ./python-packages-generated.nix {
      inherit pkgs python;
      inherit (pkgs) stdenv fetchurl;
      self = pythonPackages;
    }
  # Python packages for all python versions
  // rec {
  
    inherit python isPy26 isPy27 isPy33 isPy34 isPyPy isPy3k pythonName;
    inherit (pkgs) fetchurl fetchsvn fetchgit stdenv unzip;
  
    # helpers
  
    callPackage = pkgs.newScope pythonPackages;
  
    # global distutils config used by buildPythonPackage
    distutils-cfg = callPackage ../development/python-modules/distutils-cfg { };
  