summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwrobell <wrobell@riseup.net>2025-06-17 22:50:52 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-06-22 22:02:02 +0100
commit437809ffe269fe8c94d505cc7d5f1b2be6309161 (patch)
tree7d729bf4e6ba994f45bcc5bce74d51f9149bbae2
parent36dc401bbd1a2081d25cfe6491f7aadb9e71d99d (diff)
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] <phases>: Add 'fix-scripts. [native-inputs]: Add python-setuptools and python-wheel. Change-Id: I32c89a63c3fd1aaf3c323d4986808b7860c2d999 Co-authored-by: Sharlatan Hellseher <sharlatanus@gmail.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/python-xyz.scm26
1 files changed, 22 insertions, 4 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 48edbeb0291..335a9c1f618 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