98eb3e9ef5
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
37 lines
687 B
Nix
37 lines
687 B
Nix
{
|
|
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
|
|
];
|
|
|
|
pythonImportsCheck = [ "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;
|
|
};
|
|
}
|