Merge pull request #250339 from risicle/ris-pypdf-3.15.1

python3Packages.pypdf: 3.5.2 -> 3.15.1

Changed files
+11 -4
pkgs
development
python-modules
pypdf
+11 -4
pkgs/development/python-modules/pypdf/default.nix
···
, 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 {
···
rev = "refs/tags/${version}";
# fetch sample files used in tests
fetchSubmodules = true;
-
hash = "sha256-f+M4sfUzDy8hxHUiWG9hyu0EYvnjNA46OtHzBSJdID0=";
+
hash = "sha256-0KMZnMIeTkra2Il4HGDBtm8HLP8zpMXgUD4V5U5fYy0=";
};
outputs = [
···
passthru.optional-dependencies = rec {
full = crypto ++ image;
crypto = [
-
pycryptodome
+
cryptography
];
image = [
pillow
···
nativeCheckInputs = [
pytestCheckHook
+
pytest-timeout
] ++ passthru.optional-dependencies.full;
pytestFlagsArray = [
# don't access the network
"-m" "'not enable_socket'"
+
];
+
+
disabledTests = [
+
# requires fpdf2 which we don't package yet
+
"test_compression"
];
meta = with lib; {