pythonPackages.pdfrw2: init at 0.5.0

Co-authored-by: h7x4 <h7x4@nani.wtf>
This commit is contained in:
Loïc Reynier 2023-10-31 16:51:55 +01:00
parent 16cfcd2ef6
commit 9104ad473f
No known key found for this signature in database
GPG Key ID: 6213A7D3F83C856A
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchPypi
, pillow
, pycryptodome
, reportlab
, setuptools
}:
buildPythonPackage rec {
pname = "pdfrw2";
version = "0.5.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-5qnMq4Pnaaeov+Lb3fD0ndfr5SAy6SlXTwG7v6IZce0=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
pillow
reportlab
pycryptodome
];
pythonImportCheck = [ "pdfrw" ];
meta = with lib; {
description = "Pure Python library that reads and writes PDFs";
homepage = "https://github.com/sarnold/pdfrw";
maintainers = with maintainers; [ loicreynier ];
license = licenses.mit;
};
}

View File

@ -8831,6 +8831,8 @@ self: super: with self; {
pdfrw = callPackage ../development/python-modules/pdfrw { };
pdfrw2 = callPackage ../development/python-modules/pdfrw2 { };
pdftotext = callPackage ../development/python-modules/pdftotext { };
pdfx = callPackage ../development/python-modules/pdfx { };