python3Packages.pdf2image: fix providing of poppler_utils (#348783)
This commit is contained in:
@@ -20,8 +20,10 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Only replace first match in file
|
||||
sed -i '0,/poppler_path=None/s||poppler_path="${poppler_utils}/bin"|' pdf2image/pdf2image.py
|
||||
# replace all default values of paths to poppler_utils
|
||||
substituteInPlace pdf2image/pdf2image.py \
|
||||
--replace-fail 'poppler_path: Union[str, PurePath] = None' \
|
||||
'poppler_path: Union[str, PurePath] = "${poppler_utils}/bin"'
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ pillow ];
|
||||
|
||||
Reference in New Issue
Block a user