fades 5 (new formula)

Closes Homebrew/homebrew#50433.

Signed-off-by: Andrew Janke <andrew@apjanke.net>
This commit is contained in:
Filipe Ximenes 2016-03-26 09:43:02 -03:00 committed by Andrew Janke
parent a31d3b00ff
commit c00331f4c2

24
Formula/fades.rb Normal file
View file

@ -0,0 +1,24 @@
class Fades < Formula
desc "Automatically handle virtualenvs for python scripts"
homepage "http://fades.readthedocs.org/"
url "https://pypi.python.org/packages/source/f/fades/fades-5.tar.gz"
sha256 "1952f496059ba6bac535f2c07effae44a55de0654ababaa1a15879c4b3fa89c1"
head "https://github.com/PyAr/fades.git"
depends_on :python3
def install
pyver = Language::Python.major_minor_version "python3"
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python#{pyver}/site-packages"
system "python3", *Language::Python.setup_install_args(libexec)
bin.install Dir[libexec/"bin/*"]
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end
test do
(testpath/"test.py").write("print('it works')")
system "#{bin}/fades", testpath/"test.py"
end
end