From 8152cf0acc7eb293cb00c607440c98aa6c7dbc15 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 4 Jan 2025 02:59:37 +0100 Subject: [PATCH] python313Packages.nextcord: fix build --- .../python-modules/nextcord/default.nix | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/nextcord/default.nix b/pkgs/development/python-modules/nextcord/default.nix index 930f2e83216c..6aa365990de3 100644 --- a/pkgs/development/python-modules/nextcord/default.nix +++ b/pkgs/development/python-modules/nextcord/default.nix @@ -2,6 +2,7 @@ lib, stdenv, buildPythonPackage, + pythonAtLeast, pythonOlder, fetchFromGitHub, substituteAll, @@ -9,6 +10,7 @@ libopus, aiohttp, aiodns, + audioop-lts, brotli, faust-cchardet, orjson, @@ -42,15 +44,19 @@ buildPythonPackage rec { setuptools ]; - dependencies = [ - aiodns - aiohttp - brotli - faust-cchardet - orjson - pynacl - setuptools # for pkg_resources, remove with next release - ]; + dependencies = + [ + aiodns + aiohttp + brotli + faust-cchardet + orjson + pynacl + setuptools # for pkg_resources, remove with next release + ] + ++ lib.optionals (pythonAtLeast "3.13") [ + audioop-lts + ]; # upstream has no tests doCheck = false;