anchor.diff:      six
       kodi-six
       signals
  +    websocket
     ];
   
     meta = with lib; {
  
positive.code:   ];
  
    prePatch = ''
      substituteInPlace .config/generate_xml.py \
        --replace "'jellyfin-kodi/release.yaml'" "'release.yaml'" \
        --replace "'jellyfin-kodi/addon.xml'" "'addon.xml'"
    '';
  
    buildPhase = ''
      ${python}/bin/python3 .config/generate_xml.py py3
    '';
  
    postInstall = ''
  
negative.code: { lib, addonDir, buildKodiAddon, fetchFromGitHub, kodi, requests, dateutil, six, kodi-six, signals, websocket }:
  let
    python = kodi.pythonPackages.python.withPackages (p: with p; [ pyyaml ]);
  in
  buildKodiAddon rec {
    pname = "jellyfin";
    namespace = "plugin.video.jellyfin";
    version = "0.7.4";
  
    src = fetchFromGitHub {
      owner = "jellyfin";
      repo = "jellyfin-kodi";
      rev = "v${version}";
      sha256 = "1ykgz1l2gmpdlsp3fbm31q8757879i9dd13svslqykvxadg69x03";
    };
  
    nativeBuildInputs = [
  