python312Packages.pypdf: 4.2.0 -> 4.3.1

https://github.com/py-pdf/pypdf/releases/tag/4.3.0
https://github.com/py-pdf/pypdf/releases/tag/4.3.1

Co-Authored-By: Martin Weinelt <hexa@darmstadt.ccc.de>
This commit is contained in:
Jan van Esdonk
2024-07-23 21:41:56 +02:00
committed by Martin Weinelt
co-authored by Martin Weinelt
parent f11a6a01cb
commit ab5a40ef7f
@@ -27,8 +27,8 @@
buildPythonPackage rec {
pname = "pypdf";
version = "4.2.0";
format = "pyproject";
version = "4.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "py-pdf";
@@ -36,7 +36,7 @@ buildPythonPackage rec {
rev = "refs/tags/${version}";
# fetch sample files used in tests
fetchSubmodules = true;
hash = "sha256-ksLpxfRxrNVXezF0VjbAqadpF6bv/SAOOnCKabhugo0=";
hash = "sha256-wSF20I5WaxRoN0n0jxB5O3mAAIOxP/TclYBTRAUwYHo=";
};
outputs = [
@@ -55,12 +55,12 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--disable-socket" ""
--replace-fail "--disable-socket" ""
'';
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ typing-extensions ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ typing-extensions ];
passthru.optional-dependencies = rec {
optional-dependencies = rec {
full = crypto ++ image;
crypto = [ cryptography ];
image = [ pillow ];
@@ -72,7 +72,7 @@ buildPythonPackage rec {
(fpdf2.overridePythonAttrs { doCheck = false; }) # avoid reference loop
pytestCheckHook
pytest-timeout
] ++ passthru.optional-dependencies.full;
] ++ optional-dependencies.full;
pytestFlagsArray = [
# don't access the network