nixos-config/pkgs/auto-editor.nix
2022-10-24 12:00:18 +08:00

30 lines
749 B
Nix

{ stdenv, lib, ffmpeg, fetchFromGitHub, python310Packages }:
python310Packages.buildPythonApplication rec {
pname = "auto-editor";
version = "22w39a";
doCheck = false;
src = fetchFromGitHub {
owner = "WyattBlue";
repo = pname;
rev = version;
sha256 = "sha256-qtdk1Rr0EhG8LqY5cBxsH6VKXT/f9SV6a1X2R3HZOzI=";
};
postPatch = ''
sed ./setup.py -i -E \
-e "/ae-ffmpeg/d"
'';
propagatedBuildInputs = with python310Packages; [ numpy yt-dlp av pillow ];
runtimeDependencies = [ ffmpeg ];
meta = with lib; {
description =
"Command-line application for automating video and audio editing with a variety of methods";
homepage = "https://auto-editor.com";
license = licenses.unlicense;
};
}