python3Packages.pypdf: 3.5.2 -> 3.15.1

This commit is contained in:
Robert Scott 2023-08-20 13:37:43 +01:00
parent f03d4e0eec
commit cd94a4fcb1

View file

@ -15,16 +15,17 @@
, typing-extensions
# optionals
, pycryptodome
, cryptography
, pillow
# tests
, pytestCheckHook
, pytest-timeout
}:
buildPythonPackage rec {
pname = "pypdf";
version = "3.5.2";
version = "3.15.1";
format = "pyproject";
src = fetchFromGitHub {
@ -33,7 +34,7 @@ buildPythonPackage rec {
rev = "refs/tags/${version}";
# fetch sample files used in tests
fetchSubmodules = true;
hash = "sha256-f+M4sfUzDy8hxHUiWG9hyu0EYvnjNA46OtHzBSJdID0=";
hash = "sha256-0KMZnMIeTkra2Il4HGDBtm8HLP8zpMXgUD4V5U5fYy0=";
};
outputs = [
@ -62,7 +63,7 @@ buildPythonPackage rec {
passthru.optional-dependencies = rec {
full = crypto ++ image;
crypto = [
pycryptodome
cryptography
];
image = [
pillow
@ -75,6 +76,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
pytest-timeout
] ++ passthru.optional-dependencies.full;
pytestFlagsArray = [
@ -82,6 +84,11 @@ buildPythonPackage rec {
"-m" "'not enable_socket'"
];
disabledTests = [
# requires fpdf2 which we don't package yet
"test_compression"
];
meta = with lib; {
description = "A pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files";
homepage = "https://github.com/py-pdf/pypdf";