class Iotop < Formula desc "Top-like UI used to show which process is using the I/O" homepage "http://guichaz.free.fr/iotop/" # tag "linuxbrew" url "http://guichaz.free.fr/iotop/files/iotop-0.6.tar.bz2" sha256 "3adea2a24eda49bbbaeb4e6ed2042355b441dbd7161e883067a02bfc8dcef75b" head "git://repo.or.cz/iotop.git" depends_on :python def install ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages" system "python", *Language::Python.setup_install_args(libexec) bin.install Dir[libexec/"sbin/*"] bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"]) end test do assert_match "DISK READ and DISK WRITE", shell_output("#{bin}/iotop --help") end end