lol

python3Packages.discordpy: patch ffmpeg usage

Update pkgs/development/python-modules/discordpy/default.nix

Co-authored-by: Jonathan Ringer <jonringer@users.noreply.github.com>

authored by

Tristan Gosselin-Hane
Jonathan Ringer
and committed by
Jonathan Ringer
b99f465b f276ef75

+6 -1
+6 -1
pkgs/development/python-modules/discordpy/default.nix
··· 6 6 , pynacl 7 7 , pythonOlder 8 8 , withVoice ? true 9 + , ffmpeg 9 10 }: 10 11 11 12 buildPythonPackage rec { ··· 24 25 25 26 propagatedBuildInputs = [ 26 27 aiohttp 27 - ] ++ lib.optionalString withVoice [ 28 + ] ++ lib.optionals withVoice [ 28 29 libopus 29 30 pynacl 31 + ffmpeg 30 32 ]; 31 33 32 34 patchPhase = '' ··· 34 36 --replace "ctypes.util.find_library('opus')" "'${libopus}/lib/libopus.so.0'" 35 37 substituteInPlace requirements.txt \ 36 38 --replace "aiohttp>=3.6.0,<3.8.0" "aiohttp>=3.6.0,<4" 39 + '' + lib.optionalString withVoice '' 40 + substituteInPlace "discord/player.py" \ 41 + --replace "executable='ffmpeg'" "executable='${ffmpeg}/bin/ffmpeg'" 37 42 ''; 38 43 39 44 # Only have integration tests with discord