mcomix: make chardet/pdf optional

This commit is contained in:
Thiago Kenji Okada 2024-01-08 12:56:52 +00:00
parent eb32f20194
commit 42a3cb8ea4

View file

@ -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;