python3Packages.discordpy: relax aiohttp constraint

This commit is contained in:
Fabian Affolter 2021-11-24 11:03:41 +01:00
parent 1799f8e87b
commit 2dbcf92154

View File

@ -11,6 +11,8 @@
buildPythonPackage rec {
pname = "discord.py";
version = "1.7.3";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
@ -30,6 +32,8 @@ 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"
'';
# Only have integration tests with discord
@ -49,7 +53,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python wrapper for the Discord API";
homepage = "https://discordpy.rtfd.org/";
maintainers = [ maintainers.ivar ];
license = licenses.mit;
maintainers = with maintainers; [ ivar ];
};
}