From 437809ffe269fe8c94d505cc7d5f1b2be6309161 Mon Sep 17 00:00:00 2001 From: wrobell Date: Tue, 17 Jun 2025 22:50:52 +0100 Subject: [PATCH] gnu: python-charset-normalizer-3: Update to 3.4.2. * gnu/packages/python-xyz.scm (python-charset-normalizer-3): Update to 3.4.2. [build-system]: Use pyproject-build-system. [arguments] : Add 'fix-scripts. [native-inputs]: Add python-setuptools and python-wheel. Change-Id: I32c89a63c3fd1aaf3c323d4986808b7860c2d999 Co-authored-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 48edbeb0291ccff97ef81a7a7153a4a9fd3f8066..335a9c1f61816ebb8e01f1a1c5c2e3833367324b 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7569,7 +7569,7 @@ e.g. filters, callbacks and errbacks can all be promises.") "not test_seed_link_via_app_data" ;; AssertionError: assert 'python' in ['python3', ;; 'python3.11']. - ;; + ;; ;; PythonInfo() returns: 'system_executable': ;; '/gnu/store/...-python-wrapper-3.11.11/bin/python' "test_fallback_existent_system_executable") @@ -19515,13 +19515,31 @@ library provides codecs are supported.") (package (inherit python-charset-normalizer) (name "python-charset-normalizer") - (version "3.3.2") + (version "3.4.2") (source (origin (method url-fetch) - (uri (pypi-uri "charset-normalizer" version)) + (uri (pypi-uri "charset_normalizer" version)) (sha256 - (base32 "1m9g0f513ng4dp2vd3smi4g2nmhqkjqh3bzcza14li947frkq37k")))))) + (base32 "0qqfk84ka3d9hh0yf7n8y0qa0yn08ncdacjjckzix8ybkv5cxbjv")))) + (build-system pyproject-build-system) + (arguments + (substitute-keyword-arguments (package-arguments + python-charset-normalizer) + ((#:phases phases + '%standard-phases) + #~(modify-phases #$phases + ;; https://github.com/jawah/charset_normalizer/issues/625 + ;; https://github.com/jawah/charset_normalizer/pull/626 + (add-after 'unpack 'fix-scripts + (lambda _ + (substitute* "pyproject.toml" + (("charset_normalizer:cli.cli_detect") + "charset_normalizer.cli:cli_detect")))))))) + (native-inputs + (list python-pytest + python-setuptools + python-wheel)))) (define-public python-docopt (package