Merge pull request #118466 from IvarWithoutBones/bump/discordpy

python3Packages.discordpy: 1.6.0 -> 1.7.0
This commit is contained in:
Sandro 2021-04-05 02:26:09 +02:00 committed by GitHub
commit 0bd56b743e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@
buildPythonPackage rec {
pname = "discord.py";
version = "1.6.0";
version = "1.7.0";
disabled = pythonOlder "3.5.3";
# only distributes wheels on pypi now
@ -17,13 +17,12 @@ buildPythonPackage rec {
owner = "Rapptz";
repo = pname;
rev = "v${version}";
sha256 = "036prc4iw91qx31zz48hy3b30kn2qnlg68lgrvv2mcvsjxf2gd1l";
sha256 = "1i5k2qb894rjksn21pk9shash1y7v4138rkk8mqr1a1yvgnr5ibg";
};
propagatedBuildInputs = [ aiohttp websockets ];
patchPhase = ''
substituteInPlace "requirements.txt" \
--replace "aiohttp>=3.6.0,<3.7.0" "aiohttp" \
--replace "websockets>=6.0,!=7.0,!=8.0,!=8.0.1,<9.0" "websockets"
'' + lib.optionalString withVoice ''
substituteInPlace "discord/opus.py" \