homebrew-core/Formula/py3cairo.rb
2018-01-11 10:21:02 -08:00

26 lines
879 B
Ruby

class Py3cairo < Formula
desc "Python 3 bindings for the Cairo graphics library"
homepage "https://cairographics.org/pycairo/"
url "https://github.com/pygobject/pycairo/releases/download/v1.15.4/pycairo-1.15.4.tar.gz"
sha256 "ee4c3068c048230e5ce74bb8994a024711129bde1af1d76e3276c7acd81c4357"
revision 1
bottle do
cellar :any
sha256 "6e406c3d2a25243a94dc431943af690609c05e3c5f249aa92aaf50990a3f8bab" => :high_sierra
sha256 "6a920f844ddc419ab1606ec5883dcde4591fd10d09df0db00e0c36f7c89c6579" => :sierra
sha256 "f87c163a44a9600cd6a7cff663d49cac28262c02c71978353c880571f7046283" => :el_capitan
end
depends_on "pkg-config" => :build
depends_on "cairo"
depends_on "python3"
def install
system "python3", *Language::Python.setup_install_args(prefix)
end
test do
system "python3", "-c", "import cairo; print(cairo.version)"
end
end