{
 "app_id": "work.openpaper.Paperwork",
 "source_url": "https://raw.githubusercontent.com/flathub/work.openpaper.Paperwork/master/work.openpaper.Paperwork.json",
 "runtime": "org.gnome.Platform",
 "runtime_version": "49",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--filesystem=xdg-run/gvfsd",
  "--filesystem=host",
  "--talk-name=org.freedesktop.Notifications",
  "--talk-name=org.gtk.vfs.*",
  "--talk-name=org.freedesktop.FileManager1",
  "--own-name=work.openpaper.paperwork"
 ],
 "module_count": 28,
 "fetched_at": "2026-09-17T16:17:40.665335+00:00",
 "manifest": {
  "app-id": "work.openpaper.Paperwork",
  "runtime": "org.gnome.Platform",
  "runtime-version": "49",
  "sdk": "org.gnome.Sdk",
  "command": "paperwork-gtk",
  "copy-icon": true,
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk21"
  ],
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--filesystem=host",
   "--persist=.python-eggs",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.freedesktop.FileManager1",
   "--talk-name=org.gtk.vfs.*",
   "--filesystem=xdg-run/gvfsd",
   "--own-name=work.openpaper.paperwork",
   "--env=JAVA_HOME=/app/jre",
   "--env=LIBO_FLATPAK=1"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/doc",
   "/share/gtk-doc",
   "/share/man",
   "/share/pkgconfig",
   "/share/vala",
   "*.a",
   "*.la"
  ],
  "modules": [
   "shared-modules/libreoffice.json",
   "generated/python3-meson-python.json",
   "generated/python3-numpy.json",
   "generated/python3-pythran.json",
   "generated/python3-pybind11.json",
   {
    "name": "openblas",
    "no-autogen": true,
    "build-options": {
     "cflags": "-std=gnu18"
    },
    "make-args": [
     "DYNAMIC_ARCH=1",
     "FC=gfortran",
     "NO_CBLAS=1",
     "NO_LAPACKE=1",
     "USE_OPENMP=0"
    ],
    "make-install-args": [
     "PREFIX=/app"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/xianyi/OpenBLAS/archive/v0.3.24.tar.gz",
      "sha256": "ceadc5065da97bd92404cac7254da66cc6eb192679cf1002098688978d4d5132"
     }
    ]
   },
   "shared-modules/scikit-learn.json",
   "shared-modules/sane-backends.json",
   "shared-modules/tesseract.json",
   {
    "name": "python-distro",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --disable-pip-version-check --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} --no-build-isolation \"distro\""
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/fc/f8/98eea607f65de6527f8a2e8885fc8015d3e6f5775df186e443e0964a11c3/distro-1.9.0.tar.gz",
      "sha256": "2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed"
     }
    ]
   },
   {
    "name": "python3-scikit-build",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --disable-pip-version-check --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} --no-build-isolation \"scikit-build\""
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/24/43/a0b5837cf30db1561a04187edd262bdefaffcb61222cb441eadef35f9103/scikit_build-0.18.0-py3-none-any.whl",
      "sha256": "ea171f5529e6e0b5b666193433831af61a28d7edf973b33884ec8c782a15ee38"
     }
    ]
   },
   {
    "name": "python-fabulous",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --disable-pip-version-check --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} --no-build-isolation \"fabulous\""
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/ec/b3/38ce860b1abeb58b998db83a244239dd716308499e359fa077b0a4d0d244/fabulous-0.4.0.tar.gz",
      "sha256": "d9cee8a97e0d0eea835994394b6053f84fd6120a48779dbc533c5e6812352c84"
     }
    ]
   },
   {
    "name": "python-pillow",
    "buildsystem": "simple",
    "build-options": {
     "cflags": "-Wno-error=incompatible-pointer-types"
    },
    "build-commands": [
     "pip3 install --disable-pip-version-check --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} --no-build-isolation \"pillow\""
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/cd/74/ad3d526f3bf7b6d3f408b73fde271ec69dfac8b81341a318ce825f2b3812/pillow-10.4.0.tar.gz",
      "sha256": "166c1cd4d24309b30d61f79f4a9114b7b2313d7450912277855ff5dfd7cd4a06"
     }
    ],
    "modules": [
     {
      "name": "python-olefile",
      "buildsystem": "simple",
      "build-commands": [
       "pip3 install --disable-pip-version-check --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} --no-build-isolation \"olefile\""
      ],
      "sources": [
       {
        "type": "file",
        "url": "https://files.pythonhosted.org/packages/69/1b/077b508e3e500e1629d366249c3ccb32f95e50258b231705c09e3c7a4366/olefile-0.47.zip",
        "sha256": "599383381a0bf3dfbd932ca0ca6515acd174ed48870cbf7fee123d698c192c1c"
       }
      ]
     }
    ]
   },
   {
    "name": "python-pycountry",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --disable-pip-version-check --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} --no-build-isolation \"pycountry\""
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/b1/ec/1fb891d8a2660716aadb2143235481d15ed1cbfe3ad669194690b0604492/pycountry-24.6.1-py3-none-any.whl",
      "sha256": "f1a4fb391cd7214f8eefd39556d740adcc233c778a27f8942c8dca351d6ce06f"
     }
    ]
   },
   {
    "name": "python-pyxdg",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --disable-pip-version-check --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} --no-build-isolation \"pyxdg\""
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/b0/25/7998cd2dec731acbd438fbf91bc619603fc5188de0a9a17699a781840452/pyxdg-0.28.tar.gz",
      "sha256": "3267bb3074e934df202af2ee0868575484108581e6f3cb006af1da35395e88b4"
     }
    ]
   },
   {
    "name": "python-pydbus",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --disable-pip-version-check --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} --no-build-isolation \"pydbus\""
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/58/56/3e84f2c1f2e39b9ea132460183f123af41e3b9c8befe222a35636baa6a5a/pydbus-0.6.0.tar.gz",
      "sha256": "4207162eff54223822c185da06c1ba8a34137a9602f3da5a528eedf3f78d0f2c"
     }
    ]
   },
   {
    "name": "python3-rich",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --disable-pip-version-check --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"rich\" --no-build-isolation"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/bf/25/2d88e8feee8e055d015343f9b86e370a1ccbec546f2865c98397aaef24af/markdown_it_py-2.2.0-py3-none-any.whl",
      "sha256": "5a35f8d1870171d9acc47b99612dc146129b631baf04970128b568f190d0cc30"
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl",
      "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8"
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/87/67/a37f6214d0e9fe57f6ae54b2956d550ca8365857f42a1ce0392bb21d9410/rich-13.7.1-py3-none-any.whl",
      "sha256": "4edbae314f59eb482f54e9e30bf00d33350aaa94f4bfcd4e9e3110e64d0d7222"
     }
    ]
   },
   {
    "name": "python-whoosh",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --disable-pip-version-check --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} --no-build-isolation \"whoosh\""
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/25/2b/6beed2107b148edc1321da0d489afc4617b9ed317ef7b72d4993cad9b684/Whoosh-2.7.4.tar.gz",
      "sha256": "7ca5633dbfa9e0e0fa400d3151a8a0c4bec53bd2ecedc0a67705b17565c31a83"
     }
    ]
   },
   {
    "name": "python-psutil",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --disable-pip-version-check --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} --no-build-isolation \"psutil\""
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/90/c7/6dc0a455d111f68ee43f27793971cf03fe29b6ef972042549db29eec39a2/psutil-5.9.8.tar.gz",
      "sha256": "6be126e3225486dff286a8fb9a06246a5253f4c7c53b475ea5f5ac934e64194c"
     }
    ]
   },
   {
    "name": "poppler-data",
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "archive",
      "url": "https://poppler.freedesktop.org/poppler-data-0.4.12.tar.gz",
      "sha256": "c835b640a40ce357e1b83666aabd95edffa24ddddd49b8daff63adb851cdab74"
     }
    ]
   },
   {
    "name": "poppler",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DENABLE_QT5=OFF",
     "-DENABLE_QT6=OFF",
     "-DENABLE_BOOST=OFF",
     "-DENABLE_LIBOPENJPEG:STRING=none"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://poppler.freedesktop.org/poppler-24.07.0.tar.xz",
      "sha256": "19eb4f49198e4ae3fd9e5a6cf24d0fc7e674e8802046a7de14baab1e40cc2f1d"
     }
    ]
   },
   {
    "name": "python3-setuptools_scm",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"setuptools_scm[toml]\" --no-build-isolation"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/a0/b9/1906bfeb30f2fc13bb39bf7ddb8749784c05faadbd18a21cf141ba37bff2/setuptools_scm-8.1.0-py3-none-any.whl",
      "sha256": "897a3226a6fd4a6eb2f068745e49733261a21f70b1bb28fce0339feb978d9af3"
     },
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/26/9f/ad63fc0248c5379346306f8668cda6e2e2e9c95e01216d2b8ffd9ff037d0/typing_extensions-4.12.2-py3-none-any.whl",
      "sha256": "04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"
     }
    ]
   },
   {
    "name": "python3-certifi",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"certifi\" --no-build-isolation"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/1c/d5/c84e1a17bf61d4df64ca866a1c9a913874b4e9bdc131ec689a0ad013fb36/certifi-2024.7.4-py3-none-any.whl",
      "sha256": "c198e21b1289c2ab85ee4e67bb4b4ef3ead0892059901a8d5b622f24a1101e90"
     }
    ]
   },
   {
    "name": "libinsane",
    "buildsystem": "meson",
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.gnome.org/World/OpenPaperwork/libinsane.git",
      "tag": "1.0.10",
      "commit": "d466163a4e7ba8bd90644a2a6734395be5e51cd4",
      "disable-shallow-clone": true
     }
    ]
   },
   {
    "name": "python-pyocr",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --prefix=${FLATPAK_DEST} --no-build-isolation ."
    ],
    "ensure-writable": [
     "/lib/python*/site-packages/easy-install.pth",
     "/lib/python*/site-packages/setuptools.pth"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.gnome.org/World/OpenPaperwork/pyocr.git",
      "tag": "0.8.5",
      "commit": "ca191ba776743fe10a1c3dd99eaa82626ee4edc1",
      "disable-shallow-clone": true
     }
    ]
   },
   {
    "name": "python-pypillowfight",
    "ensure-writable": [
     "/lib/python*/site-packages/easy-install.pth",
     "/lib/python*/site-packages/setuptools.pth"
    ],
    "buildsystem": "simple",
    "build-commands": [
     "make version",
     "pip3 install --disable-pip-version-check --prefix=/app --no-deps --no-build-isolation ."
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.gnome.org/World/OpenPaperwork/libpillowfight.git",
      "tag": "0.3.1",
      "commit": "254018aad15710af6e9bdc5eb61aaa7dbac6f747",
      "disable-shallow-clone": true
     }
    ]
   },
   {
    "name": "python-paperwork",
    "make-install-args": [
     "PIP_ARGS=--verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} --no-build-isolation"
    ],
    "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": "git",
      "url": "https://gitlab.gnome.org/World/OpenPaperwork/paperwork.git",
      "tag": "2.2.5",
      "commit": "29881b6fb46d5c4d128be607d0a739c5b88af7b8",
      "disable-shallow-clone": true
     },
     {
      "type": "file",
      "url": "https://download.openpaper.work/data/paperwork/master_f54081bb/data.tar.gz",
      "sha256": "cbfe25a675bfb81e6733a3f426a42973703aee2e7de3ac291b4f7210805864a8"
     }
    ]
   }
  ]
 }
}