mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
python3Packages.discordpy: relax aiohttp constraint
This commit is contained in:
parent
1799f8e87b
commit
2dbcf92154
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user