26 lines
834 B
Ruby
26 lines
834 B
Ruby
class Fades < Formula
|
|
desc "Automatically handle virtualenvs for python scripts"
|
|
homepage "https://fades.readthedocs.io/"
|
|
url "https://files.pythonhosted.org/packages/8b/e8/87a44f1c33c41d1ad6ee6c0b87e957bf47150eb12e9f62cc90fdb6bf8669/fades-9.0.2.tar.gz"
|
|
sha256 "4a2212f48c4c377bbe4da376c4459fe2d79aea2e813f0cb60d9b9fdf43d205cc"
|
|
license "GPL-3.0-only"
|
|
head "https://github.com/PyAr/fades.git", branch: "master"
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 cellar: :any_skip_relocation, all: "e009e6e6a1d5e75f5b873d7004746bec274a2ebfad1389271dc5640e7831c9b0"
|
|
end
|
|
|
|
depends_on "python@3.11"
|
|
|
|
def install
|
|
python3 = "python3.11"
|
|
system python3, *Language::Python.setup_install_args(prefix, python3)
|
|
end
|
|
|
|
test do
|
|
(testpath/"test.py").write("print('it works')")
|
|
system bin/"fades", testpath/"test.py"
|
|
end
|
|
end
|