dnsviz: remove `poetry` dependency
Closes #101798. Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
7e0fb46c9a
commit
2258d2589f
|
@ -18,7 +18,6 @@ class Dnsviz < Formula
|
|||
end
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "poetry" => :build
|
||||
depends_on "swig" => :build
|
||||
depends_on "bind" => :test
|
||||
depends_on "graphviz"
|
||||
|
@ -31,8 +30,8 @@ class Dnsviz < Formula
|
|||
end
|
||||
|
||||
resource "dnspython" do
|
||||
url "https://files.pythonhosted.org/packages/13/27/5277de856f605f3429d752a39af3588e29d10181a3aa2e2ee471d817485a/dnspython-2.1.0.zip"
|
||||
sha256 "e4a87f0b573201a0f3727fa18a516b055fd1107e0e5477cded4a2de497df1dd4"
|
||||
url "https://files.pythonhosted.org/packages/99/fb/e7cd35bba24295ad41abfdff30f6b4c271fd6ac70d20132fa503c3e768e0/dnspython-2.2.1.tar.gz"
|
||||
sha256 "0f7569a4a6ff151958b64304071d370daa3243d15941a7beedf0c9fe5105603e"
|
||||
end
|
||||
|
||||
resource "M2Crypto" do
|
||||
|
@ -41,28 +40,14 @@ class Dnsviz < Formula
|
|||
end
|
||||
|
||||
resource "pygraphviz" do
|
||||
url "https://files.pythonhosted.org/packages/3a/d6/2c56f09ee83dbebb62c40487e4c972135661b9984fec9b30b77fb497090c/pygraphviz-1.7.zip"
|
||||
sha256 "a7bec6609f37cf1e64898c59f075afd659106cf9356c5f387cecaa2e0cdb2304"
|
||||
url "https://files.pythonhosted.org/packages/c7/21/063c3ec261904f3c67b7d8bb0033e4e53bbdacb17e6d27097239d50fb7ca/pygraphviz-1.9.zip"
|
||||
sha256 "fa18f7c6cea28341a4e466ed0cf05682b0a68288afe8dd7c9426782f7c1ae01c"
|
||||
end
|
||||
|
||||
def install
|
||||
ENV["SWIG_FEATURES"]="-I#{Formula["openssl@1.1"].opt_include}"
|
||||
|
||||
venv = virtualenv_create(libexec, "python3")
|
||||
|
||||
# Install dnspython using brewed poetry to avoid build dependency on Rust.
|
||||
resource("dnspython").stage do
|
||||
system Formula["poetry"].opt_bin/"poetry", "build", "--format", "wheel", "--verbose", "--no-interaction"
|
||||
venv.pip_install_and_link Dir["dist/dnspython-*.whl"].first
|
||||
end
|
||||
|
||||
resources.each do |r|
|
||||
next if r.name == "dnspython"
|
||||
|
||||
venv.pip_install r
|
||||
end
|
||||
|
||||
venv.pip_install_and_link buildpath
|
||||
virtualenv_install_with_resources
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in New Issue