Homebrew - Python Formula

Example Homebrew configuration for a Python project. Directory Structure:

homebrew-example \
    Formula \
        formula1.rb
brew tap me/example
brew install me/example/formula1

class Stacky < Formula
  include Language::Python::Virtualenv
  desc "Stacky"
  homepage "https://github.com/mega-mac-slice/stacky"
  url "https://raw.githubusercontent.com/mega-mac-slice/stacky/master/dist/stacky.tar.gz"
  sha256 "a5fb0a06b9844b269d77b43230e187a39d89359a692052da9ed86bb5baa03939"
  version "0.0.1"
  depends_on "jq"
  depends_on "python"
  depends_on "python3"
  def install
    venv = virtualenv_create(libexec, "python3")
    venv.pip_install resources
    venv.pip_install_and_link buildpath
  end
end