python38Packages.pdf2image: fix providing poppler_utils
dependency
This is a core dependency of pdf2image. The previous approach of adding it via `propagatedBuildInputs` has no effect outside of the build environment.
This commit is contained in:
parent
a78bc4244e
commit
fb57eed4b5
@ -4,13 +4,18 @@ buildPythonPackage rec {
|
||||
pname = "pdf2image";
|
||||
version = "1.16.0";
|
||||
|
||||
propagatedBuildInputs = [ pillow poppler_utils ];
|
||||
propagatedBuildInputs = [ pillow ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "d58ed94d978a70c73c2bb7fdf8acbaf2a7089c29ff8141be5f45433c0c4293bb";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Only replace first match in file
|
||||
sed -i '0,/poppler_path=None/s||poppler_path="${poppler_utils}/bin"|' pdf2image/pdf2image.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A python module that wraps the pdftoppm utility to convert PDF to PIL Image object";
|
||||
homepage = "https://github.com/Belval/pdf2image";
|
||||
|
Loading…
Reference in New Issue
Block a user