anchor.diff:      substituteInPlace "discord/opus.py" \
         --replace "ctypes.util.find_library('opus')" "'${libopus}/lib/libopus.so.0'"
     '';
  -
   
     # only have integration tests with discord
     doCheck = false;
  
positive.code: , withVoice ? true, libopus
  , aiohttp
  , websockets
  , pynacl
  }:
  
  buildPythonPackage rec {
    pname = "discord.py";
    version = "1.3.4";
    disabled = pythonOlder "3.5.3";
  
    # only distributes wheels on pypi now
  
negative.code:     "discord.ext.commands.bot"
    ];
  
    meta = with lib; {
      description = "A python wrapper for the Discord API";
      homepage = "https://discordpy.rtfd.org/";
      maintainers = [ maintainers.ivar ];
      license = licenses.mit;
    };
  }
  