homebrew-core/Formula/ydcv.rb
ideal c447bb95c1 ydcv 0.6.2
Closes #37120.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2019-02-22 10:41:30 +01:00

22 lines
624 B
Ruby

class Ydcv < Formula
include Language::Python::Virtualenv
desc "YouDao Console Version"
homepage "https://github.com/felixonmars/ydcv"
url "https://github.com/felixonmars/ydcv/archive/0.6.2.tar.gz"
sha256 "45a237fba401771c5ad8455938e6cf360beab24655a4961db368eb2fbbbfb546"
depends_on "python"
def install
ENV["SETUPTOOLS_SCM_PRETEND_VERSION"] = version
zsh_completion.install "contrib/zsh_completion" => "_ydcv"
virtualenv_install_with_resources
end
test do
assert_match "hello", shell_output("#{bin}/ydcv 你好")
assert_match "你好", shell_output("#{bin}/ydcv hello")
end
end