mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
9104ad473f
Co-authored-by: h7x4 <h7x4@nani.wtf>
39 lines
683 B
Nix
39 lines
683 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;
|
|
};
|
|
}
|