2024-07-31 09:50:31 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
python3Packages,
|
|
|
|
fetchFromGitHub,
|
|
|
|
yt-dlp,
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "auto-editor";
|
2025-06-24 06:41:34 +00:00
|
|
|
version = "28.0.2";
|
2024-07-31 09:50:31 +02:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "WyattBlue";
|
|
|
|
repo = "auto-editor";
|
2025-01-03 21:24:13 +01:00
|
|
|
tag = version;
|
2025-06-24 06:41:34 +00:00
|
|
|
hash = "sha256-ozw5ZPvKP7aTBBItQKNx85hZ1T4IxX9NYCcNHC5UuuM=";
|
2024-07-31 09:50:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2025-06-03 01:13:34 +08:00
|
|
|
substituteInPlace auto_editor/__main__.py \
|
|
|
|
--replace-fail '"yt-dlp"' '"${lib.getExe yt-dlp}"'
|
2024-07-31 09:50:31 +02:00
|
|
|
'';
|
|
|
|
|
2025-06-03 01:13:34 +08:00
|
|
|
build-system = with python3Packages; [ setuptools ];
|
2024-07-31 09:50:31 +02:00
|
|
|
|
|
|
|
dependencies = with python3Packages; [
|
2025-06-03 01:13:34 +08:00
|
|
|
basswood-av
|
2024-07-31 09:50:31 +02:00
|
|
|
numpy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
|
|
|
|
$out/bin/auto-editor test all
|
|
|
|
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "auto_editor" ];
|
|
|
|
|
|
|
|
meta = {
|
2025-06-15 07:52:01 +00:00
|
|
|
changelog = "https://github.com/WyattBlue/auto-editor/releases/tag/${src.tag}";
|
2024-07-31 09:50:31 +02:00
|
|
|
description = "Command line application for automatically editing video and audio by analyzing a variety of methods, most notably audio loudness";
|
|
|
|
homepage = "https://auto-editor.com/";
|
|
|
|
license = lib.licenses.unlicense;
|
|
|
|
mainProgram = "auto-editor";
|
|
|
|
maintainers = with lib.maintainers; [ tomasajt ];
|
|
|
|
};
|
|
|
|
}
|