gnu: python-chardet: Update to 5.1.0.

* gnu/packages/python-xyz.scm (python-chardet): Update to 5.1.0.
[build-system]: Change to PYPROJECT-BUILD-SYSTEM.
[arguments]: Remove custom check phase in favor of #:test-flags.
This commit is contained in:
Marius Bakke 2022-12-12 11:04:56 +01:00 committed by Maxim Cournoyer
parent 031fab603b
commit a957aacf88
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -14608,26 +14608,24 @@ simulation, statistical modeling, machine learning and much more.")
(define-public python-chardet (define-public python-chardet
(package (package
(name "python-chardet") (name "python-chardet")
(version "5.0.0") (version "5.1.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "chardet" version)) (uri (pypi-uri "chardet" version))
(sha256 (sha256
(base32 (base32
"1amqmz8731ly6f9rkbk09w4jqgmmgyxykd1bawhgrdbqzlmxys03")))) "1r9ixxnish9j3dq4h0z0cwlkr4f5lgi6d8mhbzw59hbbjlmp2qhd"))))
(native-inputs (native-inputs
(list python-pytest)) (list python-pytest))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list #:phases (list #:test-flags
;; Disable test that fails sporadically:
;; https://github.com/chardet/chardet/issues/256
#~'("-k" "not test_detect_all_and_detect_one_should_agree")
#:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-vv" "-k"
;; Disable test that fails sporadically:
;; https://github.com/chardet/chardet/issues/256
"not test_detect_all_and_detect_one_should_agree")))
;; This package provides a 'chardetect' executable that only ;; This package provides a 'chardetect' executable that only
;; depends on Python, so customize the wrap phase to avoid ;; depends on Python, so customize the wrap phase to avoid
;; adding pytest and friends in order to save size. ;; adding pytest and friends in order to save size.