depot/third_party/nixpkgs/pkgs/development/python-modules/pdfrw2/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

37 lines
686 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
];
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;
};
}