···1313, gettext
1414, gobject-introspection
1515, gdk-pixbuf
1616+, texlive
1717+, imagemagick
1818+, perlPackages
1619}:
17202121+let
2222+ documentation_deps = [
2323+ (texlive.combine {
2424+ inherit (texlive) scheme-small wrapfig was;
2525+ })
2626+ xvfb-run
2727+ imagemagick
2828+ perlPackages.Po4a
2929+ ];
3030+in
3131+1832python3Packages.buildPythonApplication rec {
1919- inherit (import ./src.nix { inherit fetchFromGitLab; }) version src;
3333+ inherit (import ./src.nix { inherit fetchFromGitLab; }) version src sample_documents;
2034 pname = "paperwork";
21352236 sourceRoot = "source/paperwork-gtk";
···5266 for i in $site/data/paperwork_*.png; do
5367 ln -s $i $site/icon/out;
5468 done
6969+7070+ export XDG_DATA_DIRS=$XDG_DATA_DIRS:${gnome.adwaita-icon-theme}/share
7171+ # build the user manual
7272+ PATH=$out/bin:$PATH PAPERWORK_TEST_DOCUMENTS=${sample_documents} make data
7373+ for i in src/paperwork_gtk/model/help/out/*.pdf; do
7474+ install -Dt $site/model/help/out $i
7575+ done
5576 '';
56775757- checkInputs = [ xvfb-run dbus.daemon ];
7878+ checkInputs = [ dbus.daemon ];
58795980 nativeBuildInputs = [
6081 wrapGAppsHook
···6283 (lib.getBin gettext)
6384 which
6485 gdk-pixbuf # for the setup hook
6565- ];
8686+ ] ++ documentation_deps;
66876788 buildInputs = [
6889 gnome.adwaita-icon-theme
···7899 makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
79100 '';
801018181- # A few parts of chkdeps need to have a display and a dbus session, so we not
8282- # only need to run a virtual X server + dbus but also have a large enough
8383- # resolution, because the Cairo test tries to draw a 200x200 window.
8484- preCheck = ''
102102+ checkPhase = ''
103103+ runHook preCheck
104104+105105+ # A few parts of chkdeps need to have a display and a dbus session, so we not
106106+ # only need to run a virtual X server + dbus but also have a large enough
107107+ # resolution, because the Cairo test tries to draw a 200x200 window.
85108 xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
86109 --config-file=${dbus.daemon}/share/dbus-1/session.conf \
87110 $out/bin/paperwork-gtk chkdeps
111111+112112+ # content of make test, without the dep on make install
113113+ python -m unittest discover --verbose -s tests
114114+115115+ runHook postCheck
88116 '';
8911790118 propagatedBuildInputs = with python3Packages; [
···97125 dateutil
98126 setuptools
99127 ];
128128+129129+ disallowedRequisites = documentation_deps;
100130101131 meta = {
102132 description = "A personal document manager for scanned documents";