gnu: python-pdfminer-six: Update to 20231228.

* gnu/packages/python-xyz.scm (python-pdfminer-six): Update to 20231228.
[build-system]: Use pyproject-build-system.
[arguments]: Convert to gexp and remove custom 'check phase.
[propagated-inputs]: Remove python-chardet and python-sortedcontainers.
Add python-charset-normalizer.
[native-inputs]: Remove python-nose and python-tox. Add python-pytest.

Change-Id: I9913385a681b32afde930e32e7379db91357177b
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Felix Gruber 2024-06-09 09:35:07 +00:00 committed by Andreas Enge
parent b141f45642
commit c86a07bacc
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -20017,7 +20017,7 @@ encoding algorithms to do fuzzy string matching.")
(define-public python-pdfminer-six (define-public python-pdfminer-six
(package (package
(name "python-pdfminer-six") (name "python-pdfminer-six")
(version "20201018") (version "20231228")
;; There are no tests in the PyPI tarball. ;; There are no tests in the PyPI tarball.
(source (source
(origin (origin
@ -20027,23 +20027,19 @@ encoding algorithms to do fuzzy string matching.")
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1a2fxxnnjqbx344znpvx7cnv1881dk6585ibw01inhfq3w6yj2lr")))) (base32 "1anyr0gm7amwls8qifflql1viz5rq6q95lfwcg43v3180h4w8wrd"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases (list #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
;; Tests write to the source tree. ;; Tests write to the source tree.
(add-after 'unpack 'make-git-checkout-writable (add-after 'unpack 'make-git-checkout-writable
(lambda _ (lambda _
(for-each make-file-writable (find-files ".")) (for-each make-file-writable (find-files ".")))))))
#t))
(replace 'check
(lambda _
(invoke "make" "test"))))))
(propagated-inputs (propagated-inputs
(list python-chardet python-cryptography python-sortedcontainers)) (list python-charset-normalizer python-cryptography))
(native-inputs (native-inputs
(list python-nose python-tox)) (list python-pytest))
(home-page "https://github.com/pdfminer/pdfminer.six") (home-page "https://github.com/pdfminer/pdfminer.six")
(synopsis "PDF parser and analyzer") (synopsis "PDF parser and analyzer")
(description "@code{pdfminer.six} is a community maintained fork of (description "@code{pdfminer.six} is a community maintained fork of