homebrew-core/Formula/pyenv-virtualenvwrapper.rb
2016-04-14 21:48:18 +08:00

21 lines
583 B
Ruby

class PyenvVirtualenvwrapper < Formula
desc "Alternative to pyenv for managing virtualenvs"
homepage "https://github.com/yyuu/pyenv-virtualenvwrapper"
url "https://github.com/yyuu/pyenv-virtualenvwrapper/archive/v20140609.tar.gz"
sha256 "c1c812c4954394c58628952654ba745c4fb814d045adc076f7fb9e310bed03bf"
head "https://github.com/yyuu/pyenv-virtualenvwrapper.git"
bottle :unneeded
depends_on "pyenv"
def install
ENV["PREFIX"] = prefix
system "./install.sh"
end
test do
shell_output("eval \"$(pyenv init -)\" && pyenv virtualenvwrapper")
end
end