summary refs log tree commit diff
path: root/pkgs/development/python-modules/nextcord/paths.patch
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-03-02 18:11:00 +0000
committerGitHub <noreply@github.com>2022-03-02 18:11:00 +0000
commitb50d36a69a108a9fa06d02793ca24067e7e4748f (patch)
treeafb7d9af0d8dd88082e2693ee2ab327f405ece0f /pkgs/development/python-modules/nextcord/paths.patch
parent2b940354f1e93729e5c8c9230b4458c533308c20 (diff)
parenta97d52b3484b545c32b0a5a2d35b589fa435a074 (diff)
Merge staging-next into staging
Diffstat (limited to 'pkgs/development/python-modules/nextcord/paths.patch')
-rw-r--r--pkgs/development/python-modules/nextcord/paths.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/nextcord/paths.patch b/pkgs/development/python-modules/nextcord/paths.patch
new file mode 100644
index 0000000000000..389637a18878c
--- /dev/null
+++ b/pkgs/development/python-modules/nextcord/paths.patch
@@ -0,0 +1,26 @@
+diff --git a/nextcord/opus.py b/nextcord/opus.py
+index 97d437a3..755e1a5c 100644
+--- a/nextcord/opus.py
++++ b/nextcord/opus.py
+@@ -213,7 +213,7 @@ def _load_default() -> bool:
+             _filename = os.path.join(_basedir, 'bin', f'libopus-0.{_target}.dll')
+             _lib = libopus_loader(_filename)
+         else:
+-            _lib = libopus_loader(ctypes.util.find_library('opus'))
++            _lib = libopus_loader('@libopus@')
+     except Exception:
+         _lib = None
+ 
+diff --git a/nextcord/player.py b/nextcord/player.py
+index bedefc5a..34de0459 100644
+--- a/nextcord/player.py
++++ b/nextcord/player.py
+@@ -140,7 +140,7 @@ class FFmpegAudio(AudioSource):
+     .. versionadded:: 1.3
+     """
+ 
+-    def __init__(self, source: Union[str, io.BufferedIOBase], *, executable: str = 'ffmpeg', args: Any, **subprocess_kwargs: Any):
++    def __init__(self, source: Union[str, io.BufferedIOBase], *, executable: str = '@ffmpeg@', args: Any, **subprocess_kwargs: Any):
+         piping = subprocess_kwargs.get('stdin') == subprocess.PIPE
+         if piping and isinstance(source, str):
+             raise TypeError("parameter conflict: 'source' parameter cannot be a string when piping to stdin")