WyattBlue / auto-editor

Auto-Editor: Efficient media analysis and rendering
https://auto-editor.com
The Unlicense
2.93k stars 425 forks source link

feat: support install auto-editor by homebrew #294

Closed sysulq closed 1 year ago

WyattBlue commented 2 years ago

Here's a source only formula I quickly came up with. Maybe someone more familiar with brew could improve it.

class AutoEditor < Formula
  include Language::Python::Virtualenv

  desc "Effort free video editing!"
  homepage "https://auto-editor.com"
  url "https://files.pythonhosted.org/packages/a3/35/279d29248b07d724bf588fd02298164d88e760491794ab36e2a9ef61a0a0/auto-editor-22.32.1.tar.gz"
  sha256 "f8634438a2c9a88103b7edf7f35834224affa242f5fbfde2dbb7c2e1f7144b5c"
  license "Unlicense"

  head do
    url "https://github.com/WyattBlue/auto-editor.git", branch: "master"
  end

  depends_on "python@3.10"
  depends_on "ffmpeg"
  depends_on "yt-dlp" => :recommended
  # numpy, pillow, av must be installed in brew python

  def install
    system "make", "pypi-files" if build.head?
    virtualenv_install_with_resources
  end

  test do
    system "#{bin}/auto-editor", "--debug"
  end
end
WyattBlue commented 1 year ago

Since I don't have the time to do this, and no one else has pursued this either, I am closing this issue.

If you'd like to see auto-editor for homebrew, make a PR on homebrew's github.