python310Packages.pdf2image: add changelog to meta
- add pythonImportsCheck
This commit is contained in:
parent
3296813f01
commit
545e4f3375
@ -1,14 +1,21 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pillow, poppler_utils }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pillow
|
||||
, poppler_utils
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pdf2image";
|
||||
version = "1.16.2";
|
||||
format = "setuptools";
|
||||
|
||||
propagatedBuildInputs = [ pillow ];
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-hnYQke7jX0ZB6pjf3bJUJUNh0Bi+aYoZmv98HTczGAM=";
|
||||
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