nixos-config/pkgs/auto-editor.nix
Gabriel Arazas 8fdf77f6af auto-editor: init at 22w12a
This is largely untested with the other functions so beware... I've yet
to use this tool in its fullest potential.
2022-03-26 11:09:09 +08:00

46 lines
1.2 KiB
Nix

{ stdenv, lib, fetchFromGitHub, python310Packages }:
let
pillow = python310Packages.pillow.overrideAttrs (super: rec {
version = "9.0.1";
src = python310Packages.fetchPypi {
inherit version;
pname = super.pname;
sha256 = "sha256-bIvII4p9/a96dfXsWmY/QXP4w2flo5+H5yBJXh7tdfo=";
};
});
av = python310Packages.av.overrideAttrs (super: rec {
version = "9.0.1";
src = python310Packages.fetchPypi {
inherit version;
pname = super.pname;
sha256 = "sha256-IBbGImSg0Ars6w9Ati35+el2Bnyl86m9v1Mv5exTQZ8=";
};
buildInputs = super.buildInputs ++ [ python310Packages.cython ];
});
in
python310Packages.buildPythonApplication rec {
pname = "auto-editor";
version = "22w12a";
doCheck = false;
src = fetchFromGitHub {
owner = "WyattBlue";
repo = pname;
rev = version;
sha256 = "sha256-mtVL/X6mh+0Paa6yuth9DGbqewsSBopV5/VXoC0DN4M=";
};
propagatedBuildInputs = with python310Packages; [
numpy
yt-dlp
] ++ [ av pillow ];
meta = with lib; {
description = "Command-line application for automating video and audio editing with a variety of methods";
homepage = "https://auto-editor.com/cli";
license = licenses.unlicense;
};
}