{
    "app-id": "work.openpaper.Paperwork",
    "branch": "master",
    "runtime": "org.gnome.Platform",
    "runtime-version": "3.36",
    "sdk": "org.gnome.Sdk",
    "command": "paperwork-gtk",
    "copy-icon": true,
    "finish-args": [
        "--share=ipc",
        "--share=network",
        "--socket=fallback-x11",
        "--socket=wayland",
        "--filesystem=home",
        "--persist=.python-eggs",
        "--talk-name=org.freedesktop.Notifications",
        "--talk-name=org.freedesktop.FileManager1",
        "--talk-name=org.gtk.vfs",
        "--talk-name=org.gtk.vfs.*",
        "--own-name=work.openpaper.paperwork"
    ],
    "modules": [
        "shared-modules/tesseract-4.1.1.json",
        "shared-modules/sane-backends-1.0.27.json",
        {
            "name": "python-setuptools",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth","/lib/python*/site-packages/setuptools.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/c2/f7/c7b501b783e5a74cf1768bc174ee4fb0a8a6ee5af6afa92274ff964703e0/setuptools-40.8.0.zip",
                    "sha256": "6e4eec90337e849ade7103723b9a99631c1f0d19990d6e8412dc42f5ae8b304d"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-setuptools-scm",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth","/lib/python*/site-packages/setuptools.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/54/85/514ba3ca2a022bddd68819f187ae826986051d130ec5b972076e4f58a9f3/setuptools_scm-3.2.0.tar.gz",
                    "sha256": "52ab47715fa0fc7d8e6cd15168d1a69ba995feb1505131c3e814eb7087b57358"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-setuptools-scm-git-archive",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth","/lib/python*/site-packages/setuptools.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/7e/2c/0c15b29a1b5940250bfdc4a4f53272e35cd7cf8a34159291b6b4ec9eb291/setuptools_scm_git_archive-1.1.tar.gz",
                    "sha256": "6026f61089b73fa1b5ee737e95314f41cb512609b393530385ed281d0b46c062"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-distro",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth","/lib/python*/site-packages/setuptools.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/ca/e3/78443d739d7efeea86cbbe0216511d29b2f5ca8dbf51a6f2898432738987/distro-1.4.0.tar.gz",
                    "sha256": "362dde65d846d23baee4b5c058c8586f219b5a54be1cf5fc6ff55c4578392f57"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-dateutil",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth","/lib/python*/site-packages/setuptools.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/ad/99/5b2e99737edeb28c71bcbec5b5dda19d0d9ef3ca3e92e3e925e7c0bb364c/python-dateutil-2.8.0.tar.gz",
                    "sha256": "c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-Levenshtein",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth","/lib/python*/site-packages/setuptools.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://pypi.python.org/packages/42/a9/d1785c85ebf9b7dfacd08938dd028209c34a0ea3b1bcdb895208bd40a67d/python-Levenshtein-0.12.0.tar.gz",
                    "sha256": "033a11de5e3d19ea25c9302d11224e1a1898fe5abd23c61c7c360c25195e3eb1"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-getkey",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth","/lib/python*/site-packages/setuptools.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/74/f2/3312ea94369f410967667eeca61d261cdf3037df6ea827078ac7c5321150/getkey-0.6.5.tar.gz",
                    "sha256": "68c7c702c3b34deacf427f6c0f1fd66c5c2aa12d7801aa32442fc1a71c8ce059"
                },
                {
                    "type": "patch",
                    "path": "getkey-setup.diff"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-fabulous",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth","/lib/python*/site-packages/setuptools.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/53/2d/5750798dbb1cd3029c17b6f7456f79948b15f63e4781ffa0be8cf35cfc22/fabulous-0.3.0.tar.gz",
                    "sha256": "54040da01d7ce1e937fc4b61d265e872b007463bea411a3a5762f4d6ee55c312"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-pillow",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth","/lib/python*/site-packages/setuptools.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/3c/7e/443be24431324bd34d22dd9d11cc845d995bcd3b500676bcf23142756975/Pillow-5.4.1.tar.gz",
                    "sha256": "5233664eadfa342c639b9b9977190d64ad7aca4edc51a966394d7e08e7f38a9f"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ],
            "modules": [
                {
                    "name": "python-olefile",
                    "no-autogen": true,
                    "ensure-writable": ["/lib/python*/site-packages/easy-install.pth","/lib/python*/site-packages/setuptools.pth"],
                    "sources": [
                        {
                            "type": "archive",
                            "url": "https://files.pythonhosted.org/packages/34/81/e1ac43c6b45b4c5f8d9352396a14144bba52c8fec72a80f425f6a4d653ad/olefile-0.46.zip",
                            "sha256": "133b031eaf8fd2c9399b78b8bc5b8fcbe4c31e85295749bb17a87cba8f3c3964"
                        },
                        {
                            "type": "file",
                            "path": "pip-Makefile",
                            "dest-filename": "Makefile"
                        }
                    ]
                }
            ]
        },
        {
            "name": "python-pycountry",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth","/lib/python*/site-packages/setuptools.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/87/c7/c2c76c3ae4ac79c74c1871ae775ed97b70d475dd90d1e824b1d2fc0cd54f/pycountry-18.12.8.tar.gz",
                    "sha256": "8ec4020b2b15cd410893d573820d42ee12fe50365332e58c0975c953b60a16de"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-nose",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth","/lib/python*/site-packages/setuptools.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://pypi.python.org/packages/58/a5/0dc93c3ec33f4e281849523a5a913fa1eea9a3068acfa754d44d88107a44/nose-1.3.7.tar.gz",
                    "sha256": "f1bffef9cbc82628f6e7d7b40d7e255aefaa1adb6a1b1d26c69a8b79e6208a98"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-pyxdg",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth","/lib/python*/site-packages/setuptools.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/47/6e/311d5f22e2b76381719b5d0c6e9dc39cd33999adae67db71d7279a6d70f4/pyxdg-0.26.tar.gz",
                    "sha256": "fe2928d3f532ed32b39c32a482b54136fe766d19936afc96c8f00645f9da1a06"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-pydbus",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth","/lib/python*/site-packages/setuptools.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/58/56/3e84f2c1f2e39b9ea132460183f123af41e3b9c8befe222a35636baa6a5a/pydbus-0.6.0.tar.gz",
                    "sha256": "4207162eff54223822c185da06c1ba8a34137a9602f3da5a528eedf3f78d0f2c"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-simplebayes",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth","/lib/python*/site-packages/setuptools.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://pypi.python.org/packages/b9/73/764578df72934940d95a8941cbd374b56319562dda72630fc8bfeaefc350/simplebayes-1.5.8.tar.gz",
                    "sha256": "363418c0ef185ac2158ebbd6d8afb45aa997254fcb809a73ed20a7d5dccf8b85"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-whoosh",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth","/lib/python*/site-packages/setuptools.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/25/2b/6beed2107b148edc1321da0d489afc4617b9ed317ef7b72d4993cad9b684/Whoosh-2.7.4.tar.gz",
                    "sha256": "7ca5633dbfa9e0e0fa400d3151a8a0c4bec53bd2ecedc0a67705b17565c31a83"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "poppler-data",
            "buildsystem": "cmake-ninja",
            "sources": [
                {
                    "type": "archive",
                    "url": "https://poppler.freedesktop.org/poppler-data-0.4.9.tar.gz",
                    "sha256": "1f9c7e7de9ecd0db6ab287349e31bf815ca108a5a175cf906a90163bdbe32012"
                }
            ]
        },
        {
            "name": "poppler",
            "buildsystem": "cmake-ninja",
            "config-opts": [
                "-DENABLE_LIBOPENJPEG:STRING=none"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://poppler.freedesktop.org/poppler-0.74.0.tar.xz",
                    "sha256": "92e09fd3302567fd36146b36bb707db43ce436e8841219025a82ea9fb0076b2f"
                }
            ]
        },
        {
            "name": "libinsane",
            "buildsystem": "meson",
            "sources": [
                {
                    "type": "git",
                    "url": "https://gitlab.gnome.org/World/OpenPaperwork/libinsane.git",
                    "tag": "1.0.8",
                    "disable-shallow-clone": true
                }
            ]
        },
        {
            "name": "python-pyocr",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/86/17/5fa0edc8da817a7da0198f03319850cb36cf2f20a38b6c7616fcb36211ef/pyocr-0.7.2.tar.gz",
                    "sha256": "fa15adc7e1cf0d345a2990495fe125a947c6e09a60ddba0256a1c14b2e603179"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-pypillowfight",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/76/73/ce51023006387551b37b286d918e1a4e467f754374dec98d253aaa9ea121/pypillowfight-0.3.0.tar.gz",
                    "sha256": "ec5bcf4b935f3b6e49b327c17f5a804d41ab72966c2b0edfbd45220fb7ad9316"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },

        {
            "name": "python-openpaperwork-core",
            "make-install-args": ["PIP_ARGS=--prefix=/app"],
            "no-autogen": true,
            "ensure-writable": [
                    "/lib/python*/site-packages/easy-install.pth",
                    "/lib/python*/site-packages/setuptools.pth"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/67/d4/ce1835b729d5e0cf8abbe373d3f2b3140fa42ed92c1df6c69545f6beaba6/openpaperwork-core-2.0.1.tar.gz",
                    "sha256": "5eb92bacb672bae25f85f1012da3ad084ea951f5ef252f38a6bad2f4c7b5da08"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-openpaperwork-gtk",
            "make-install-args": ["PIP_ARGS=--prefix=/app"],
            "no-autogen": true,
            "ensure-writable": [
                    "/lib/python*/site-packages/easy-install.pth",
                    "/lib/python*/site-packages/setuptools.pth"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/9a/71/5ef7c4c7c39a181a715748fa1f59efb5068781fb114697afc8b4cddc4190/openpaperwork-gtk-2.0.1.tar.gz",
                    "sha256": "a137a4a327075125a9b14e510b7cc387af18c5bc7ab6f57f87512f0510b0213f"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-paperwork-backend",
            "make-install-args": ["PIP_ARGS=--prefix=/app"],
            "no-autogen": true,
            "ensure-writable": [
                    "/lib/python*/site-packages/easy-install.pth",
                    "/lib/python*/site-packages/setuptools.pth"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/64/7d/b3bc8ba5efd1e316989e7a0955e8db58906a119e97d7773e485efc01d66c/paperwork-backend-2.0.1.tar.gz",
                    "sha256": "4a813edf5e517a01b76e9fa7703a0b255241e585e899745d0133c5b655e5c6f4"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-paperwork-shell",
            "make-install-args": ["PIP_ARGS=--prefix=/app"],
            "no-autogen": true,
            "ensure-writable": [
                    "/lib/python*/site-packages/easy-install.pth",
                    "/lib/python*/site-packages/setuptools.pth"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/c0/5e/a3a243025198aff48bc8dc4143e4ed35656d00639feacf40cee13c945a4c/paperwork-shell-2.0.1.tar.gz",
                    "sha256": "bab9baf3199d79fe789ead8e01e5a5c0313b4ef1726fa06f43543c702230e1eb"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-paperwork-gtk",
            "make-install-args": ["PIP_ARGS=--prefix=/app"],
            "no-autogen": true,
            "ensure-writable": [
                    "/lib/python*/site-packages/easy-install.pth",
                    "/lib/python*/site-packages/setuptools.pth"
            ],
            "post-install": ["paperwork-gtk install --icon_base_dir=/app/share/icons --data_base_dir=/app/share"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://files.pythonhosted.org/packages/cd/42/9434bfc27a03a65fca505b9ed92313081bb29a915a3cb498a44ade11465a/paperwork-2.0.1.tar.gz",
                    "sha256": "b8c376b1afe206436042f5c64b56c3160cb3144887f841d4706271e08e61394b"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        }
    ]
}
