python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / applications / graphics / mcomix / default.nix
blob5c6e49ea9a64e61cc122aaa44f40a6ccb0821f08
1 { lib
2 , fetchurl
3 , gdk-pixbuf
4 , gobject-introspection
5 , gtk3
6 , mcomix
7 , python3
8 , testers
9 , wrapGAppsHook
11 # Recommended Dependencies:
12 , lhasa
13 , mupdf
14 , p7zip
15 , unrar
16 , unrarSupport ? false  # unfree software
19 python3.pkgs.buildPythonApplication rec {
20   pname = "mcomix";
21   version = "2.0.2";
23   src = fetchurl {
24     url = "mirror://sourceforge/mcomix/${pname}-${version}.tar.gz";
25     sha256 = "sha256-7zjQcT5WoHxy+YzCDJ6s2ngOOfO4L9exuqBqacecClg=";
26   };
28   buildInputs = [ gobject-introspection gtk3 gdk-pixbuf ];
29   nativeBuildInputs = [ wrapGAppsHook ];
30   propagatedBuildInputs = (with python3.pkgs; [ pillow pygobject3 pycairo ]);
32   # Tests are broken
33   doCheck = false;
35   # Correct wrapper behavior, see https://github.com/NixOS/nixpkgs/issues/56943
36   # until https://github.com/NixOS/nixpkgs/pull/102613
37   strictDeps = false;
39   # prevent double wrapping
40   dontWrapGApps = true;
42   preFixup = ''
43     makeWrapperArgs+=(
44       "''${gappsWrapperArgs[@]}"
45       "--prefix" "PATH" ":" "${lib.makeBinPath ([ p7zip lhasa mupdf ] ++ lib.optional (unrarSupport) unrar)}"
46     )
47   '';
49   passthru.tests.version = testers.testVersion {
50     package = mcomix;
51   };
53   meta = with lib; {
54     description = "Comic book reader and image viewer";
55     longDescription = ''
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)
59     '';
60     homepage = "https://sourceforge.net/projects/mcomix/";
61     license = licenses.gpl2Plus;
62     maintainers = with maintainers; [ thiagokokada ];
63   };