anchor.diff:      doInstallCheck = true;
   
       installCheckPhase = "$out/bin/kodi --version";
  +
  +    passthru = {
  +      pythonPackages = python2Packages;
  +    };
   
       meta = with stdenv.lib; {
         description = "Media center";
  
positive.code: 
      buildInputs = [
        gnutls libidn libtasn1 nasm p11-kit
        libxml2 yasm python2
        boost libmicrohttpd
        gettext pcre-cpp yajl fribidi libva libdrm
        openssl gperf tinyxml2 taglib libssh swig jre
  
negative.code:     postInstall = ''
        for p in $(ls $out/bin/) ; do
          wrapProgram $out/bin/$p \
            --prefix PATH            ":" "${lib.makeBinPath [ python2Packages.python glxinfo xdpyinfo ]}" \
            --prefix LD_LIBRARY_PATH ":" "${lib.makeLibraryPath
                ([ curl systemd libmad libvdpau libcec libcec_platform rtmpdump libass ] ++ lib.optional nfsSupport libnfs)}"
        done
  