homebrew-core/Formula/pyenv-pip-migrate.rb

23 lines
686 B
Ruby

class PyenvPipMigrate < Formula
desc "Migrate pip packages from one Python version to another"
homepage "https://github.com/pyenv/pyenv-pip-migrate"
url "https://github.com/pyenv/pyenv-pip-migrate/archive/v20181205.tar.gz"
sha256 "c064c76b854fa905c40e71b5223699bacf18ca492547aad93cdde2b98ca4e58c"
license "MIT"
head "https://github.com/pyenv/pyenv-pip-migrate.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, all: "a8b8a8f1c522ac7425a4ada017386a97558038c858fe209e60cd1392e6c0ea6c"
end
depends_on "pyenv"
def install
prefix.install Dir["*"]
end
test do
shell_output("eval \"$(pyenv init -)\" && pyenv help migrate")
end
end