[build] type = "meson" [build.flags] build_dir = "build" post_install = [ '''python -m compileall -d /usr/lib "$DESTDIR/usr/lib"''', '''python -O -m compileall -d /usr/lib "$DESTDIR/usr/lib"''', '''python -m sphinx -b html docs "$DESTDIR/usr/share/doc/pycairo/html"''', '''rm -r "$DESTDIR/usr/share/doc/pycairo/html/.doctrees"''' ] split-docs = true [dependencies] build = [ "meson", "python-sphinx", "python-sphinx_rtd_theme", ] runtime = [ "cairo", "python", ] test = [ "python-pytest" ] [package] description = "Python bindings for the cairo graphics library" homepage = "https://pycairo.readthedocs.io/en/latest/" license = "LGPL-2.1-Only OR MPL-1.1" name = "python-cairo" version = "1.29.0" [[source]] extract_dir = "$name-$version" sha256 = "f3f7fde97325cae80224c09f12564ef58d0d0f655da0e3b040f5807bd5bd3142" url = "https://github.com/pygobject/pycairo/releases/download/v$version/pycairo-$version.tar.gz"