emaryn
2025-06-03 07:45:01 +08:00
parent e5abc74608
commit a04c3b2985
2 changed files with 6 additions and 29 deletions
+6 -16
View File
@@ -2,40 +2,30 @@
lib,
python3Packages,
fetchFromGitHub,
replaceVars,
yt-dlp,
}:
python3Packages.buildPythonApplication rec {
pname = "auto-editor";
version = "26.2.0";
version = "28.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "WyattBlue";
repo = "auto-editor";
tag = version;
hash = "sha256-BYpt/EelCChhphfuTcqI/VIVis6dnt0J4FcNhWeiiyY=";
hash = "sha256-9U3hDVtSuOdiGnEsKs0InV9v0UrlI3qKaBqfCtVTD0E=";
};
patches = [
(replaceVars ./set-exe-paths.patch {
yt_dlp = lib.getExe yt-dlp;
})
];
postPatch = ''
# pyav is a fork of av, but has since mostly been un-forked
substituteInPlace pyproject.toml \
--replace-fail '"pyav==14.*"' '"av"'
substituteInPlace auto_editor/__main__.py \
--replace-fail '"yt-dlp"' '"${lib.getExe yt-dlp}"'
'';
build-system = with python3Packages; [
setuptools
];
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
av
basswood-av
numpy
];
@@ -1,13 +0,0 @@
diff --git a/auto_editor/utils/types.py b/auto_editor/utils/types.py
index 931cc33..b0aecbc 100644
--- a/auto_editor/utils/types.py
+++ b/auto_editor/utils/types.py
@@ -191,7 +191,7 @@ def resolution(val: str | None) -> tuple[int, int] | None:
@dataclass(slots=True)
class Args:
- yt_dlp_location: str = "yt-dlp"
+ yt_dlp_location: str = "@yt_dlp@"
download_format: str | None = None
output_format: str | None = None
yt_dlp_extras: str | None = None