4 , gobject-introspection
11 # Recommended Dependencies:
16 , unrarSupport ? false # unfree software
19 python3.pkgs.buildPythonApplication rec {
24 url = "mirror://sourceforge/mcomix/${pname}-${version}.tar.gz";
25 sha256 = "sha256-7zjQcT5WoHxy+YzCDJ6s2ngOOfO4L9exuqBqacecClg=";
28 buildInputs = [ gobject-introspection gtk3 gdk-pixbuf ];
29 nativeBuildInputs = [ wrapGAppsHook ];
30 propagatedBuildInputs = (with python3.pkgs; [ pillow pygobject3 pycairo ]);
35 # Correct wrapper behavior, see https://github.com/NixOS/nixpkgs/issues/56943
36 # until https://github.com/NixOS/nixpkgs/pull/102613
39 # prevent double wrapping
44 "''${gappsWrapperArgs[@]}"
45 "--prefix" "PATH" ":" "${lib.makeBinPath ([ p7zip lhasa mupdf ] ++ lib.optional (unrarSupport) unrar)}"
49 passthru.tests.version = testers.testVersion {
54 description = "Comic book reader and image viewer";
56 User-friendly, customizable image viewer, specifically designed to handle
57 comic books and manga supporting a variety of container formats
58 (including CBR, CBZ, CB7, CBT, LHA and PDF)
60 homepage = "https://sourceforge.net/projects/mcomix/";
61 license = licenses.gpl2Plus;
62 maintainers = with maintainers; [ thiagokokada ];