Commit 42a3cb8e authored by Thiago Kenji Okada's avatar Thiago Kenji Okada
Browse files

mcomix: make chardet/pdf optional

parent eb32f201
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -11,6 +11,8 @@
  # Recommended Dependencies:
, p7zip
, unrar
, chardetSupport ? true
, pdfSupport ? true
, unrarSupport ? false  # unfree software
}:

@@ -36,14 +38,12 @@ python3.pkgs.buildPythonApplication rec {
  ];

  propagatedBuildInputs = with python3.pkgs; [
    # Runtime dependencies
    pillow
    pycairo
    pygobject3
    # Optional dependencies
    chardet
    pymupdf
  ];
  ]
  ++ lib.optionals chardetSupport [ chardet ]
  ++ lib.optionals pdfSupport [ pymupdf ];

  # No tests included in .tar.gz
  doCheck = false;