python3Packages.imageio-ffmpeg: 0.4.7 -> 0.4.8

This commit is contained in:
Martin Weinelt 2023-02-27 02:14:24 +01:00
parent 161757d56d
commit d7e3cff83e
2 changed files with 8 additions and 12 deletions

View File

@ -9,13 +9,13 @@
buildPythonPackage rec {
pname = "imageio-ffmpeg";
version = "0.4.7";
version = "0.4.8";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-egiDj5fzY+N8pBghuGT9P9yZqx/iQhBAx4619Wqecj4=";
sha256 = "sha256-/aoFrRD+Bwt/qOX2FcsNKPO5t5HQCvbSoR5pQVjRCqk=";
};
patches = [

View File

@ -1,11 +1,11 @@
diff --git a/imageio_ffmpeg/_utils.py b/imageio_ffmpeg/_utils.py
index 1399cfd..c0eb9be 100644
index 6387834..e5e312d 100644
--- a/imageio_ffmpeg/_utils.py
+++ b/imageio_ffmpeg/_utils.py
@@ -23,33 +23,7 @@ def get_ffmpeg_exe():
if exe:
return exe
@@ -38,29 +38,7 @@ def get_ffmpeg_exe():
@lru_cache()
def _get_ffmpeg_exe():
- plat = get_platform()
-
- # 2. Try from here
@ -28,12 +28,8 @@ index 1399cfd..c0eb9be 100644
- if _is_valid_exe(exe):
- return exe
-
- # Nothing was found
- raise RuntimeError(
- "No ffmpeg exe could be found. Install ffmpeg on your system, "
- "or set the IMAGEIO_FFMPEG_EXE environment variable."
- )
+ return '@ffmpeg@'
- return None
+ return "@ffmpeg@"
def _popen_kwargs(prevent_sigint=False):