about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pdfrw2/default.nix
blob: 6ed93640af7e6a4d830735e5d6533163f43cfebc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
  };
}