anchor.diff:        --replace "ctypes.util.find_library('opus')" "'${libopus}/lib/libopus.so.0'"
       substituteInPlace requirements.txt \
         --replace "aiohttp>=3.6.0,<3.8.0" "aiohttp>=3.6.0,<4"
  +  '' + lib.optionalString withVoice ''
  +    substituteInPlace "discord/player.py" \
  +      --replace "executable='ffmpeg'" "executable='${ffmpeg}/bin/ffmpeg'"
     '';
   
     # Only have integration tests with discord
  
positive.code: , pynacl
  , pythonOlder
  , withVoice ? true
  }:
  
  buildPythonPackage rec {
  
negative.code: 
    propagatedBuildInputs = [
      aiohttp
    ] ++ lib.optionals withVoice [
      libopus
      pynacl
      ffmpeg
    ];
  
    patchPhase = ''
  