pythonPackages.discordpy: remove overly restrictive version constraints

This commit is contained in:
IvarWithoutBones 2020-12-14 03:56:10 +01:00 committed by Jonathan Ringer
parent 2194012d3b
commit b9140da9e2

View File

@ -23,8 +23,8 @@ buildPythonPackage rec {
propagatedBuildInputs = [ aiohttp websockets ];
patchPhase = ''
substituteInPlace "requirements.txt" \
--replace "aiohttp>=3.6.0,<3.7.0" "aiohttp~=3.6.0" \
--replace "websockets>=6.0,!=7.0,!=8.0,!=8.0.1,<9.0" "websockets>=6"
--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" \
--replace "ctypes.util.find_library('opus')" "'${libopus}/lib/libopus.so.0'"