92b3d6365d
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
40 lines
849 B
Nix
40 lines
849 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, glibcLocales
|
|
, typing-extensions
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "PyPDF2";
|
|
version = "2.11.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-PHut1RLCFxHrF4nC6tv5YnkonA+URS7lSoZHO/vv1zI=";
|
|
};
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
|
|
typing-extensions
|
|
];
|
|
|
|
checkInputs = [ 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 ];
|
|
};
|
|
|
|
}
|