From a9cd728f69a7267d15d004db99ba7e2c0aee89e3 Mon Sep 17 00:00:00 2001 From: MayNiklas Date: Thu, 18 Aug 2022 13:39:52 +0200 Subject: [PATCH] python3Packages.discordpy: 1.7.3 -> 2.0.0 --- pkgs/development/python-modules/discordpy/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/discordpy/default.nix b/pkgs/development/python-modules/discordpy/default.nix index aa88147ae7fd..f4450f2fea51 100644 --- a/pkgs/development/python-modules/discordpy/default.nix +++ b/pkgs/development/python-modules/discordpy/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "discord.py"; - version = "1.7.3"; + version = "2.0.0"; format = "setuptools"; disabled = pythonOlder "3.8"; @@ -20,7 +20,7 @@ buildPythonPackage rec { owner = "Rapptz"; repo = pname; rev = "v${version}"; - sha256 = "sha256-eKXCzGFSzxpdZed4/4G6uJ96s5yCm6ci8K8XYR1zQlE="; + sha256 = "sha256-BhxXsNRgs/ihnlTxNwYTjRwPvneyDF8Q0wS3qr2BG9Q="; }; propagatedBuildInputs = [ @@ -34,8 +34,6 @@ buildPythonPackage rec { patchPhase = '' substituteInPlace "discord/opus.py" \ --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'"