{
    "app-id": "work.openpaper.Paperwork",
    "branch": "1.2.3",
    "runtime": "org.gnome.Platform",
    "runtime-version": "3.26",
    "sdk": "org.gnome.Sdk",
    "command": "paperwork",
    "copy-icon": true,
    "finish-args": [
        "--share=ipc",
        "--share=network",
        "--socket=x11",
        "--socket=wayland",
        "--filesystem=home",
        "--talk-name=org.freedesktop.Notifications",
        "--talk-name=org.freedesktop.DBus",
        "--socket=session-bus",
        "--own-name=work.openpaper.paperwork",
        "--filesystem=xdg-run/dconf", "--filesystem=~/.config/dconf:ro",
        "--talk-name=ca.desrt.dconf", "--env=DCONF_USER_CONFIG_DIR=.config/dconf"
    ],
    "modules": [
        "shared-modules/tesseract-3.05.01.json",
        "shared-modules/sane-backends-1.0.27.json",
        {
            "name": "python-six",
            "no-autogen": true,
            "sources": [
                {
                    "type": "archive",
                    "url": "https://pypi.python.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/six-1.10.0.tar.gz",
                    "sha256": "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-dateutil",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://pypi.python.org/packages/51/fc/39a3fbde6864942e8bb24c93663734b74e281b984d1b8c4f95d64b0c21f6/python-dateutil-2.6.0.tar.gz",
                    "sha256": "62a2f8df3d66f878373fd0072eacf4ee52194ba302e00082828e0d263b0418d2"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-Levenshtein",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.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-pillow",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://pypi.python.org/packages/93/73/66854f63b1941aad9af18a1de59f9cf95ad1a87c801540222e332f6688d7/Pillow-4.1.1.tar.gz",
                    "sha256": "00b6a5f28d00f720235a937ebc2f50f4292a5c7e2d6ab9a8b26153b625c4f431"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                },
                {
                    "type": "patch",
                    "path": "python-pillow-disable-multithreaded-compilation.diff",
                    "strip-components": 0,
                    "dest": ".",
                    "use-git": false
                }
            ],
            "modules": [
                {
                    "name": "python-olefile",
                    "no-autogen": true,
                    "ensure-writable": ["/lib/python*/site-packages/easy-install.pth"],
                    "sources": [
                        {
                            "type": "archive",
                            "url": "https://pypi.python.org/packages/35/17/c15d41d5a8f8b98cc3df25eb00c5cee76193114c78e5674df6ef4ac92647/olefile-0.44.zip",
                            "sha256": "61f2ca0cd0aa77279eb943c07f607438edf374096b66332fae1ee64a6f0f73ad"
                        },
                        {
                            "type": "file",
                            "path": "pip-Makefile",
                            "dest-filename": "Makefile"
                        }
                    ]
                }
            ]
        },
        {
            "name": "python-pycountry",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://pypi.python.org/packages/4b/51/9155a48faed108db64a0ff45227c752fda8126f3585475cef30b7abaa536/pycountry-17.1.8.tar.gz",
                    "sha256": "c5ccad49e47caee92779bf83da81565159b1fe3d8f48b063068ac118b73dd1f8"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-nose",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.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-pyinsane2",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://pypi.python.org/packages/89/02/d516f6676ce668626275207e1bb4567404c900854157ea2d1b9b1f2bc2b6/pyinsane2-2.0.9.tar.gz",
                    "sha256": "879cecc7679acac0129b5e3e297236197cbd6991a89faa6dadfae89ce10f8abc"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-pyocr",
            "no-autogen": true,
            "ensure-writable": ["/lib/python*/site-packages/easy-install.pth"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://pypi.python.org/packages/6b/5e/0eaa5c939426b0f6a51f9fc883a1d756ad54ac9568faab129440a1dbca24/pyocr-0.4.6.tar.gz",
                    "sha256": "3626ea30ca3d52c8282da672692b216f28cca62fe0e5f97e58f57b7b1d38d56f"
                },
                {
                    "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://pypi.python.org/packages/c6/89/a32d817e56314ca8c1532bce4553ba2ca8c93d75766bfd748730841f2cf5/pypillowfight-0.2.1.tar.gz",
                    "sha256": "57bb003ff66979b9b3d5e1e32189f6cd23bb63f2a659f3b97c84ad05ba07992a"
                },
                {
                    "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://pypi.python.org/packages/26/28/ee953bd2c030ae5a9e9a0ff68e5912bd90ee50ae766871151cd2572ca570/pyxdg-0.25.tar.gz",
                    "sha256": "81e883e0b9517d624e8b0499eb267b82a815c0b7146d5269f364988ae031279d"
                },
                {
                    "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://pypi.python.org/packages/58/56/3e84f2c1f2e39b9ea132460183f123af41e3b9c8befe222a35636baa6a5a/pydbus-0.6.0.tar.gz",
                    "sha256": "4207162eff54223822c185da06c1ba8a34137a9602f3da5a528eedf3f78d0f2c"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        },
        {
            "name": "python-paperwork-backend",
            "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/3f/b9/8cae7c26a9a56a06fa3b1b3c5fc97f633a9a3f543a2a92f9a96edb7df8c0/paperwork-backend-1.2.3.tar.gz",
                    "sha256": "b25aacb754f123465f77ebfbd68adf083025fbc3b240bf8f6cd4019dd9a91bd1"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ],
            "modules": [
                {
                    "name": "python-natsort",
                    "no-autogen": true,
                    "ensure-writable": ["/lib/python*/site-packages/easy-install.pth"],
                    "sources": [
                        {
                            "type": "archive",
                            "url": "https://pypi.python.org/packages/8e/6b/a4e3031e573ef29a251984ac0a6bd26cedac6f5e67a7607c9746bd64b3fe/natsort-5.0.3.tar.gz",
                            "sha256": "d57b7a0156f16f49c6c010c9ce97e2125956697846f31bba7cd544cd24b007c1"
                        },
                        {
                            "type": "file",
                            "path": "pip-Makefile",
                            "dest-filename": "Makefile"
                        }
                    ]
                },
                {
                    "name": "python-pyenchant",
                    "no-autogen": true,
                    "ensure-writable": ["/lib/python*/site-packages/easy-install.pth"],
                    "sources": [
                        {
                            "type": "archive",
                            "url": "https://pypi.python.org/packages/73/73/49f95fe636ab3deed0ef1e3b9087902413bcdf74ec00298c3059e660cfbb/pyenchant-1.6.8.tar.gz",
                            "sha256": "7ead2ee74f1a4fc2a7199b3d6012eaaaceea03fbcadcb5df67d2f9d0d51f050a"
                        },
                        {
                            "type": "file",
                            "path": "pip-Makefile",
                            "dest-filename": "Makefile"
                        }
                    ]
                },
                {
                    "name": "python-simplebayes",
                    "no-autogen": true,
                    "ensure-writable": ["/lib/python*/site-packages/easy-install.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"],
                    "sources": [
                        {
                            "type": "archive",
                            "url": "https://pypi.python.org/packages/25/2b/6beed2107b148edc1321da0d489afc4617b9ed317ef7b72d4993cad9b684/Whoosh-2.7.4.tar.gz",
                            "sha256": "7ca5633dbfa9e0e0fa400d3151a8a0c4bec53bd2ecedc0a67705b17565c31a83"
                        },
                        {
                            "type": "file",
                            "path": "pip-Makefile",
                            "dest-filename": "Makefile"
                        }
                    ]
                },
                {
                    "name": "python-termcolor",
                    "no-autogen": true,
                    "ensure-writable": ["/lib/python*/site-packages/easy-install.pth"],
                    "sources": [
                        {
                            "type": "archive",
                            "url": "https://pypi.python.org/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz",
                            "sha256": "1d6d69ce66211143803fbc56652b41d73b4a400a2891d7bf7a1cdf4c02de613b"
                        },
                        {
                            "type": "file",
                            "path": "pip-Makefile",
                            "dest-filename": "Makefile"
                        }
                    ]
                },
                {
                    "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://pypi.python.org/packages/a9/23/720c7558ba6ad3e0f5ad01e0d6ea2288b486da32f053c73e259f7c392042/setuptools-36.0.1.zip",
                            "sha256": "e17c4687fddd6d70a6604ac0ad25e33324cec71b5137267dd5c45e103c4b288a"
                        },
                        {
                            "type": "file",
                            "path": "pip-Makefile",
                            "dest-filename": "Makefile"
                        }
                    ]
                }
            ]
        },
        {
            "name": "poppler-data",
            "buildsystem": "cmake",
            "sources": [
                {
                    "type": "archive",
                    "url": "https://poppler.freedesktop.org/poppler-data-0.4.7.tar.gz",
                    "sha256": "e752b0d88a7aba54574152143e7bf76436a7ef51977c55d6bd9a48dccde3a7de"
                }
            ]
        },
        {
            "name": "poppler",
            "buildsystem": "autotools",
            "config-opts": [
                "--enable-libopenjpeg=none",
                "--enable-xpdf-headers"
            ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://poppler.freedesktop.org/poppler-0.55.0.tar.xz",
                    "sha256": "537f2bc60d796525705ad9ca8e46899dcc99c2e9480b80051808bae265cdc658"
                }
            ]
        },
        {
            "name": "python-paperwork",
            "make-install-args": ["prefix=/app"],
            "no-autogen": true,
            "ensure-writable": [
                    "/lib/python*/site-packages/easy-install.pth",
                    "/lib/python*/site-packages/setuptools.pth"
            ],
            "post-install": ["paperwork-shell install_system /app/share/icons /app/share"],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://pypi.python.org/packages/a2/4f/dbc66c0338307528a8ca95a875aeb5bbd12c353723fcd43852cebaa8c715/paperwork-1.2.3.tar.gz",
                    "sha256": "0a715c4aa292d2da73f1a1840d59b628f4907553f30a8557f30041625bab7883"
                },
                {
                    "type": "file",
                    "path": "pip-Makefile",
                    "dest-filename": "Makefile"
                }
            ]
        }
    ]
}
