homebrew-core/Formula/virtualenv.rb

47 lines
2.3 KiB
Ruby

class Virtualenv < Formula
include Language::Python::Virtualenv
desc "Tool for creating isolated virtual python environments"
homepage "https://virtualenv.pypa.io/"
url "https://files.pythonhosted.org/packages/7b/19/65f13cff26c8cc11fdfcb0499cd8f13388dd7b35a79a376755f152b42d86/virtualenv-20.17.1.tar.gz"
sha256 "f8b927684efc6f1cc206c9db297a570ab9ad0e51c16fa9e45487d36d1905c058"
license "MIT"
head "https://github.com/pypa/virtualenv.git", branch: "main"
bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "b6433eccf52ce3b733b122932e64c2446bedfbec22f5bcf84ab6323968541dca"
sha256 cellar: :any_skip_relocation, arm64_monterey: "a86a36013d8fb5f6878ff0fcfa37cce0db787a141ef9221f92f9d05b3075ca47"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "483243cfbff1224994175b773bb622e0acdf4acba3af10c0d377ec68aa11d20d"
sha256 cellar: :any_skip_relocation, ventura: "cbd564239827182063e09cbd58dfaecb54abc213612a7ae86fab8a1cfdf9da9d"
sha256 cellar: :any_skip_relocation, monterey: "1bb516dae5be32bb7953aa9109fc70d4f7e4f9a84f13f092d0e567b550611970"
sha256 cellar: :any_skip_relocation, big_sur: "d30200f296078f3ed33873306afbec5dc59def61be4b44926fff655d00dfb50c"
sha256 cellar: :any_skip_relocation, x86_64_linux: "c8fc9ae634e4488637972c71ee3d410cee13349b710d0982010d09d07244352a"
end
depends_on "python@3.11"
resource "distlib" do
url "https://files.pythonhosted.org/packages/58/07/815476ae605bcc5f95c87a62b95e74a1bce0878bc7a3119bc2bf4178f175/distlib-0.3.6.tar.gz"
sha256 "14bad2d9b04d3a36127ac97f30b12a19268f211063d8f8ee4f47108896e11b46"
end
resource "filelock" do
url "https://files.pythonhosted.org/packages/d8/73/292d9ea2370840a163e6dd2d2816a571244e9335e2f6ad957bf0527c492f/filelock-3.8.2.tar.gz"
sha256 "7565f628ea56bfcd8e54e42bdc55da899c85c1abfe1b5bcfd147e9188cebb3b2"
end
resource "platformdirs" do
url "https://files.pythonhosted.org/packages/cb/5f/dda8451435f17ed8043eab5ffe04e47d703debe8fe845eb074f42260e50a/platformdirs-2.5.4.tar.gz"
sha256 "1006647646d80f16130f052404c6b901e80ee4ed6bef6792e1f238a8969106f7"
end
def install
virtualenv_install_with_resources
end
test do
system "#{bin}/virtualenv", "venv_dir"
assert_match "venv_dir", shell_output("venv_dir/bin/python -c 'import sys; print(sys.prefix)'")
end
end