summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-11-24 11:03:41 +0100
committerJonathan Ringer <jonringer@users.noreply.github.com>2022-01-07 14:10:16 -0800
commit36480448d470bf41bb21267cf9062a1542c4a95f (patch)
tree72c070857f595143fdd1d2bc6d22e45623030f7e
parentvarnish: use jemalloc instead of glibc's malloc on linux. (diff)
downloadnixpkgs-36480448d470bf41bb21267cf9062a1542c4a95f.tar.gz
python3Packages.discordpy: relax aiohttp constraint
(cherry picked from commit 2dbcf92154f32989374dd1167b46c57e3e3750fc)
-rw-r--r--pkgs/development/python-modules/discordpy/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/discordpy/default.nix b/pkgs/development/python-modules/discordpy/default.nix
index 6de2b9f81721..7dfd6e071fe0 100644
--- a/pkgs/development/python-modules/discordpy/default.nix
+++ b/pkgs/development/python-modules/discordpy/default.nix
@@ -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 ];
};
}