python312Packages.pypdf: 4.1.0 → 4.2.0 (#313482)

This commit is contained in:
Jan van Esdonk
2024-05-22 22:09:15 +00:00
committed by GitHub
parent 04d3e02586
commit 4469a8c99f
@@ -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 ];
};
}