Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.1 KiB
Nix
Raw Permalink Normal View History

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";
tag = version;
2025-06-24 06:41:34 +00:00
hash = "sha256-ozw5ZPvKP7aTBBItQKNx85hZ1T4IxX9NYCcNHC5UuuM=";
2024-07-31 09:50:31 +02:00
};
postPatch = ''
substituteInPlace auto_editor/__main__.py \
--replace-fail '"yt-dlp"' '"${lib.getExe yt-dlp}"'
2024-07-31 09:50:31 +02:00
'';
build-system = with python3Packages; [ setuptools ];
2024-07-31 09:50:31 +02:00
dependencies = with python3Packages; [
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 ];
};
}