{
    "app-id": "org.freedesktop.Piper",
    "runtime": "org.gnome.Platform",
    "runtime-version": "3.32",
    "sdk": "org.gnome.Sdk",
    "command": "piper",
      "finish-args": [
        "--share=ipc",
        "--socket=x11",
        "--socket=wayland",
        "--filesystem=xdg-run/dconf",
        "--filesystem=~/.config/dconf:ro",
        "--talk-name=ca.desrt.dconf",
        "--env=DCONF_USER_CONFIG_DIR=.config/dconf",
        "--system-talk-name=org.freedesktop.ratbag1"
      ],
    "modules": [
        {
            "name": "python-evdev",
            "buildsystem": "simple",
            "build-commands": [
                "pip3 install --prefix=/app --no-deps ."
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/7e/53/374b82dd2ccec240b7388c65075391147524255466651a14340615aabb5f/evdev-1.1.2.tar.gz",
                    "sha256": "2dd67291be20e70643e8ef6f2381efc10e0c6e44a32abb3c1db74996ea3b0351"
                }
            ]
        },
        {
            "name": "python-lxml",
            "buildsystem": "simple",
            "build-commands": [
                "pip3 install --prefix=/app --no-deps ."
            ],
            "build-options": {
                "env": {
                    "XSLT_CONFIG": "pkg-config libxslt"
                }
            },
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/65/6f/d070609b415f4a24bf36b7deb94bfd791e8d023c0dbf4233659af53fe0ab/lxml-4.3.2.tar.gz",
                    "sha256": "3a9d8521c89bf6f2a929c3d12ad3ad7392c774c327ea809fd08a13be6b3bc05f"
                }
            ]
        },
        {
            "name": "Piper",
            "buildsystem": "meson",
            "config-opts": [ "-Dignore-ratbagd-dependency=true" ],
            "sources": [
                {
                    "type": "git",
                    "url": "https://github.com/libratbag/piper"
                }
            ]
        }
    ]
}
