blob: 9708ee4c69258a81ed3e97b3cd577bb93acc0994 (
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
39
40
41
42
43
|
{ lib
, buildPythonPackage
, fetchPypi
, flit-core
, pythonOlder
, typing-extensions
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "PyPDF2";
version = "3.0.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-p0QI9pumJx9xuTUu9O0D3FOjGqQE0ptdMfU7/s/uFEA=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
typing-extensions
];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [
"PyPDF2"
];
meta = with lib; {
description = "A Pure-Python library built as a PDF toolkit";
homepage = "https://pypdf2.readthedocs.io/";
changelog = "https://github.com/py-pdf/PyPDF2/raw/${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ desiderius vrthra ];
};
}
|