anchor.diff: -{ lib, buildPythonPackage
  -, zip, ffmpeg, rtmpdump, phantomjs2, atomicparsley, pycryptodome, pandoc
  -, fetchFromGitHub
  +{ lib, buildPythonPackage, fetchPypi
  +, ffmpeg, rtmpdump, phantomjs2, atomicparsley, pycryptodome
   , websockets, mutagen
   , ffmpegSupport ? true
   , rtmpSupport ? true
   , phantomjsSupport ? false
   , hlsEncryptedSupport ? true
  -, installShellFiles, makeWrapper }:
  +}:
   
   buildPythonPackage rec {
     pname = "yt-dlp";
  
positive.code:   meta = with lib; {
      homepage = "https://github.com/yt-dlp/yt-dlp/";
      description = "Command-line tool to download videos from YouTube.com and other sites (youtube-dl fork)";
      longDescription = ''
        yt-dlp is a youtube-dl fork based on the now inactive youtube-dlc.
  
  
negative.code:   # to the latest stable release.
    version = "2021.08.10";
  
    src = fetchPypi {
      inherit pname;
      version = builtins.replaceStrings [ ".0" ] [ "." ] version;
      sha256 = "8da1bf4dc4641d37d137443c4783109ee8393caad5e0d270d9d1d534e8f25240";
    };
  
    # build_lazy_extractors assumes this directory exists but it is not present in
    # the PyPI package
    postPatch = ''
      mkdir -p ytdlp_plugins/extractor
    '';
  
    propagatedBuildInputs = [ websockets mutagen ]
      ++ lib.optional hlsEncryptedSupport pycryptodome;
  
  