mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
Merge pull request #208596 from r-ryantm/auto-update/python3.10-pdf2image
python310Packages.pdf2image: 1.16.0 -> 1.16.2
This commit is contained in:
commit
d8d10f3f81
@ -1,14 +1,21 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pillow, poppler_utils }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pillow
|
||||
, poppler_utils
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pdf2image";
|
||||
version = "1.16.0";
|
||||
version = "1.16.2";
|
||||
format = "setuptools";
|
||||
|
||||
propagatedBuildInputs = [ pillow ];
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "d58ed94d978a70c73c2bb7fdf8acbaf2a7089c29ff8141be5f45433c0c4293bb";
|
||||
hash = "sha256-hnYQke7jX0ZB6pjf3bJUJUNh0Bi+aYoZmv98HTczGAM=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@ -16,9 +23,18 @@ buildPythonPackage rec {
|
||||
sed -i '0,/poppler_path=None/s||poppler_path="${poppler_utils}/bin"|' pdf2image/pdf2image.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pillow
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pdf2image"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A python module that wraps the pdftoppm utility to convert PDF to PIL Image object";
|
||||
description = "Module that wraps the pdftoppm utility to convert PDF to PIL Image object";
|
||||
homepage = "https://github.com/Belval/pdf2image";
|
||||
changelog = "https://github.com/Belval/pdf2image/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ gerschtli ];
|
||||
platforms = platforms.all;
|
||||
|
Loading…
Reference in New Issue
Block a user