anchor.diff:          inherit python;
         };
   
  -      penv = python.buildEnv.override {
  -        extraLibs = (c.pythonPackages or (self: [])) pythonPackages;
  -      };
  +      pythonEnv = python.withPackages (c.pythonPackages or (self: []));
   
         uwsgiCfg = {
           uwsgi =
  
positive.code:               inherit plugins;
              } // removeAttrs c [ "type" "pythonPackages" ]
                // optionalAttrs (python != null) {
                  pythonpath = "${penv}/${python.sitePackages}";
                  env =
                    # Argh, uwsgi expects list of key-values there instead of a dictionary.
                    let env' = c.env or [];
  
negative.code:                            then substring (stringLength "PATH=") (stringLength x) x
                             else null;
                        oldPaths = filter (x: x != null) (map getPath env');
                    in env' ++ [ "PATH=${optionalString (oldPaths != []) "${last oldPaths}:"}${pythonEnv}/bin" ];
                }
            else if c.type == "emperor"
              then {
  