mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
mcomix: make chardet/pdf optional
This commit is contained in:
parent
eb32f20194
commit
42a3cb8ea4
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue