about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJan van Esdonk <javaes@users.noreply.github.com>2024-05-23 00:09:15 +0200
committerGitHub <noreply@github.com>2024-05-22 22:09:15 +0000
commit4469a8c99f67d87468fdcf5dbc38d315566fe448 (patch)
treeedbd99dbd148cf405981b1f2ab8c105837ab1dcd
parent04d3e02586729663610bf982dfff433d9a8f6d5e (diff)
python312Packages.pypdf: 4.1.0 → 4.2.0 (#313482)
-rw-r--r--pkgs/development/python-modules/pypdf/default.nix23
1 files changed, 3 insertions, 20 deletions
diff --git a/pkgs/development/python-modules/pypdf/default.nix b/pkgs/development/python-modules/pypdf/default.nix
index c8e89bb74b366..376e655b2608e 100644
--- a/pkgs/development/python-modules/pypdf/default.nix
+++ b/pkgs/development/python-modules/pypdf/default.nix
@@ -2,7 +2,6 @@
   lib,
   buildPythonPackage,
   fetchFromGitHub,
-  fetchpatch2,
   pythonOlder,
 
   # build-system
@@ -28,7 +27,7 @@
 
 buildPythonPackage rec {
   pname = "pypdf";
-  version = "4.1.0";
+  version = "4.2.0";
   format = "pyproject";
 
   src = fetchFromGitHub {
@@ -37,18 +36,9 @@ buildPythonPackage rec {
     rev = "refs/tags/${version}";
     # fetch sample files used in tests
     fetchSubmodules = true;
-    hash = "sha256-Z3flDC102FwEaNtef0YAfmAFSxpimQNyxt9tRfpKueg=";
+    hash = "sha256-ksLpxfRxrNVXezF0VjbAqadpF6bv/SAOOnCKabhugo0=";
   };
 
-  patches = [
-    (fetchpatch2 {
-      # add missing test marker on networked test
-      url = "https://github.com/py-pdf/pypdf/commit/f43268734a529d4098e6258bf346148fd24c54f0.patch";
-      includes = [ "tests/test_generic.py" ];
-      hash = "sha256-Ow32UB4crs3OgT+AmA9TNmcO5Y9SoSahybzD3AmWmVk=";
-    })
-  ];
-
   outputs = [
     "out"
     "doc"
@@ -90,18 +80,11 @@ buildPythonPackage rec {
     "'not enable_socket'"
   ];
 
-  disabledTests = [
-    # requires fpdf2 which we don't package yet
-    "test_compression"
-    # infinite recursion when including fpdf2
-    "test_merging_many_temporary_files"
-  ];
-
   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";
     changelog = "https://github.com/py-pdf/pypdf/blob/${src.rev}/CHANGELOG.md";
     license = licenses.bsd3;
-    maintainers = with maintainers; [ ];
+    maintainers = with maintainers; [ javaes ];
   };
 }