diff --git a/Formula/fabric.rb b/Formula/fabric.rb index 9ea372b703c..a5de33d73be 100644 --- a/Formula/fabric.rb +++ b/Formula/fabric.rb @@ -20,6 +20,7 @@ class Fabric < Formula depends_on "rust" => :build depends_on "openssl@1.1" + depends_on "pyinvoke" depends_on "python@3.10" depends_on "six" @@ -38,11 +39,6 @@ class Fabric < Formula sha256 "63f9c17c0e2474ccbebc9302ce2f07b55b3b3fcb211ded18a42d5764f5c10a82" end - resource "invoke" do - url "https://files.pythonhosted.org/packages/df/59/41b614b9d415929b4d72e3ee658bd088640e9a800e55663529a8237deae3/invoke-1.7.1.tar.gz" - sha256 "7b6deaf585eee0a848205d0b8c0014b9bf6f287a8eb798818a642dff1df14b19" - end - resource "paramiko" do url "https://files.pythonhosted.org/packages/1d/08/3b8d8f1b4ec212c17429c2f3ff55b7f2237a1ad0c954972e39c8f0ac394c/paramiko-2.11.0.tar.gz" sha256 "003e6bee7c034c21fbb051bf83dc0a9ee4106204dd3c53054c71452cc4ec3938" @@ -65,6 +61,11 @@ class Fabric < Formula def install virtualenv_install_with_resources + + # we depend on pyinvoke, but that's a separate formula, so install a `.pth` file to link them + site_packages = Language::Python.site_packages("python3.10") + pyinvoke = Formula["pyinvoke"].opt_libexec + (libexec/site_packages/"homebrew-pyinvoke.pth").write pyinvoke/site_packages end test do diff --git a/pypi_formula_mappings.json b/pypi_formula_mappings.json index 856d03e7b9d..0ccd2c7a621 100644 --- a/pypi_formula_mappings.json +++ b/pypi_formula_mappings.json @@ -193,7 +193,7 @@ "exclude_packages": ["six"] }, "fabric": { - "exclude_packages": ["six"] + "exclude_packages": ["six", "invoke"] }, "fava": { "exclude_packages": ["six"]