diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-11-27 21:09:31 +0000 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-12-13 20:28:39 +0000 |
commit | ed9935ff8723186a906629b576b70dd54e62f7d4 (patch) | |
tree | ce1ac4c70859612a51cb96037ab5aed53f994214 /gnu/packages/pdf.scm | |
parent | 8d60e7088c3a8dd72297f05303deaecf3ab89fb3 (diff) |
gnu: python-pypdf: Update to 5.1.0.
* gnu/packages/pdf.scm (python-pypdf): Update to 5.1.0. Improve style.
[source]: Remove patch.
[argumetns]<test-flags>: Silent 2 failing tests.
[propagated-inputs]: Add python-pillow.
[native-inputs]: Add python-pytest-socket, python-pytest-timeout,
python-pyyaml, and python-pytest-xdist.
* gnu/packages/patches/python-pypdf-annotate-tests-appropriately.patch:
Delete file.
* gnu/local.mk: Deregister patch.
Change-Id: Iba7aea89431f386dff74cb426d8fcbbcbeaaf009
Diffstat (limited to 'gnu/packages/pdf.scm')
-rw-r--r-- | gnu/packages/pdf.scm | 46 |
1 files changed, 30 insertions, 16 deletions
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index 96e9e5e9e77..f7cd19b974f 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -1344,26 +1344,40 @@ converter using the Poppler and Cairo libraries.") (define-public python-pypdf (package (name "python-pypdf") - (version "3.2.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/py-pdf/pypdf") - (commit version))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1qwvjr694sabfblx22zd54b9ny40f2gbv3bv6q43myrlxwvvisk6")) - (patches (search-patches - "python-pypdf-annotate-tests-appropriately.patch")))) + (version "5.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/py-pdf/pypdf") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0dl3nmvsk43s2v6a5cwwvfwpyvhsl9wcrdnqbzjsp50zqibi23pz")))) (build-system pyproject-build-system) - (native-inputs (list python-pytest python-flit)) - (propagated-inputs (list python-typing-extensions)) - (home-page "https://github.com/py-pdf/pypdf") (arguments (list ;; Disable tests that use the network and non-free assets. - #:test-flags #~(list "-m" "not external and not samples"))) + #:test-flags + #~(list "-m" "not samples and not enable_socket" + "--numprocesses" (number->string (parallel-job-count)) + "-k" (string-join + ;; ValueError: cannot save mode RGBA + (list "not test_replace_image" + ;; assert None + "test_writer_xmp_metadata_samples") + " and not ")))) + (native-inputs + (list python-flit + python-pytest + python-pytest-socket + python-pytest-timeout + python-pyyaml + python-pytest-xdist)) + (propagated-inputs + (list python-typing-extensions + python-pillow)) + (home-page "https://github.com/py-pdf/pypdf") (synopsis "Python PDF library") (description "This package provides a PDF library capable of splitting, merging, |