1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: python-pypdf: Update to 6.9.2.

* gnu/packages/pdf.scm (python-pypdf): Update to 6.9.2.
[arguments] <test-flags>: Run tests in a single thread, there are not
many of them; rework skipped tests.
[propagated-inputs]: Remove python-typing-extensions.
[native-inputs]: Remove python-flit, and python-pytest-xdist.

Fixes: guix/guix#7276
Change-Id: I6635b1f9583edf8caa271c292ea14e6db6ab0d6e
This commit is contained in:
Sharlatan Hellseher
2026-03-26 20:24:25 +00:00
parent fa02c5df4d
commit f6a8133015

View File

@@ -1686,40 +1686,34 @@ converter using the Poppler and Cairo libraries.")
(define-public python-pypdf (define-public python-pypdf
(package (package
(name "python-pypdf") (name "python-pypdf")
(version "6.0.0") (version "6.9.2")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/py-pdf/pypdf") (url "https://github.com/py-pdf/pypdf")
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "0p0650ya5f84d7khf34an9qpyww6yxnsdhgbppxfy3bg3qkx3s7g")))) (base32 "1x0v1h7783baxqqgm77sdc6qdzckzd3fz8wqxic4bc8bp9f0cagn"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
;; Disable tests that use the network and non-free assets. ;; tests: 721 passed, 15 skipped, 434 deselected
#:test-flags #:test-flags
;; Disable tests that use the network and non-free assets.
#~(list "-m" "not samples and not enable_socket" #~(list "-m" "not samples and not enable_socket"
"--numprocesses" (number->string (parallel-job-count)) ;; OSError: broken data stream when writing image file
"-k" (string-join (string-append "--deselect=tests/generic/test_image_xobject.py"
;; ValueError: cannot save mode RGBA "::test_handle_jpx__explicit_decode"))))
(list "not test_replace_image"
;; assert None
"test_writer_xmp_metadata_samples")
" and not "))))
(native-inputs (native-inputs
(list python-flit (list python-flit-core
python-flit-core
python-pytest python-pytest
python-pytest-socket python-pytest-socket
python-pytest-timeout python-pytest-timeout
python-pyyaml python-pyyaml))
python-pytest-xdist))
(propagated-inputs (propagated-inputs
(list python-typing-extensions (list python-pillow))
python-pillow))
(home-page "https://github.com/py-pdf/pypdf") (home-page "https://github.com/py-pdf/pypdf")
(synopsis "Python PDF library") (synopsis "Python PDF library")
(description (description