homebrew-core/Formula/pyqt-builder.rb

30 lines
899 B
Ruby

class PyqtBuilder < Formula
desc "Tool to build PyQt"
homepage "https://www.riverbankcomputing.com/software/pyqt-builder/intro"
url "https://files.pythonhosted.org/packages/3e/ed/fa5ffe4a72903747cdd5860a46483795edc0b70562015dde42724e9ce00f/PyQt-builder-1.14.0.tar.gz"
sha256 "6755931c6d2f8940553e0334d10c933ce5cc18b64425e94fda1accf4ff774f59"
license any_of: ["GPL-2.0-only", "GPL-3.0-only"]
revision 1
head "https://www.riverbankcomputing.com/hg/PyQt-builder", using: :hg
bottle do
sha256 cellar: :any_skip_relocation, all: "be08ab36285909a7513b5e25d70cc9c515ac4a3dbb6487b21c38084aa1250765"
end
depends_on "python@3.11"
depends_on "sip"
def python3
"python3.11"
end
def install
system python3, *Language::Python.setup_install_args(prefix, python3)
end
test do
system bin/"pyqt-bundle", "-V"
system python3, "-c", "import pyqtbuild"
end
end