Unverified Commit 78aa67c5 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python313Packages.discordpy: 2.4.0 -> 2.5.2 (#392368)

parents 77a4ca2e 7c3c0434
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -2,18 +2,19 @@
  lib,
  stdenv,
  aiohttp,
  audioop-lts,
  buildPythonPackage,
  fetchFromGitHub,
  ffmpeg,
  libopus,
  pynacl,
  withVoice ? true,
  ffmpeg,
  setuptools,
  withVoice ? true,
}:

let
  pname = "discord.py";
  version = "2.4.0";
  version = "2.5.2";
in
buildPythonPackage {
  inherit pname version;
@@ -23,12 +24,15 @@ buildPythonPackage {
    owner = "Rapptz";
    repo = "discord.py";
    tag = "v${version}";
    hash = "sha256-GIwXx7bRCH2+G3zlilJ/Tb8el50SDbxGGX2/1bqL3+U=";
    hash = "sha256-xaZeOkfOhm1CL5ceu9g/Vlas4jpYoQDlGMEtACFY7PE=";
  };

  build-system = [ setuptools ];

  dependencies = [ aiohttp ] ++ lib.optionals withVoice [ pynacl ];
  dependencies = [
    aiohttp
    audioop-lts
  ] ++ lib.optionals withVoice [ pynacl ];

  patchPhase = lib.optionalString withVoice ''
    substituteInPlace "discord/opus.py" \