mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-charset-normalizer: Update to 3.4.2.
* gnu/packages/python-xyz.scm (python-charset-normalizer): Copy package defination from python-charset-normalizer-3. [build-system]: Use pypproject. [arguments] <phases>: Use default 'wrap; add 'fix-scripts. [native-inputs]: Add python-setuptools. Change-Id: I1f7ad78630a72be7e936f00b11bed0dab8dec21e
This commit is contained in:
parent
8648571931
commit
abdce54877
1 changed files with 16 additions and 24 deletions
|
@ -19678,36 +19678,28 @@ automatically detect a wide range of file encodings.")
|
||||||
(define-public python-charset-normalizer
|
(define-public python-charset-normalizer
|
||||||
(package
|
(package
|
||||||
(name "python-charset-normalizer")
|
(name "python-charset-normalizer")
|
||||||
(version "2.1.0")
|
(version "3.4.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "charset-normalizer" version))
|
(uri (pypi-uri "charset_normalizer" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "04zlajr77f6c7ai59l46as1idi0jjgbvj72lh4v5wfpz2s070pjp"))))
|
(base32 "0qqfk84ka3d9hh0yf7n8y0qa0yn08ncdacjjckzix8ybkv5cxbjv"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list #:phases
|
(list
|
||||||
#~(modify-phases %standard-phases
|
#:phases
|
||||||
;; This package provides a 'normalizer' executable that only
|
#~(modify-phases %standard-phases
|
||||||
;; depends on Python, so customize the wrap phase to avoid
|
;; https://github.com/jawah/charset_normalizer/issues/625
|
||||||
;; adding pytest and friends in order to save size.
|
;; https://github.com/jawah/charset_normalizer/pull/626
|
||||||
;; (See also <https://bugs.gnu.org/25235>.)
|
(add-after 'unpack 'fix-scripts
|
||||||
(replace 'wrap
|
(lambda _
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(substitute* "pyproject.toml"
|
||||||
(let* ((sitedir (site-packages inputs outputs))
|
(("charset_normalizer:cli.cli_detect")
|
||||||
(python (dirname (dirname
|
"charset_normalizer.cli:cli_detect")))))))
|
||||||
(search-input-file
|
|
||||||
inputs "bin/python"))))
|
|
||||||
(python-sitedir
|
|
||||||
(string-append python "/lib/python"
|
|
||||||
(python-version python)
|
|
||||||
"/site-packages")))
|
|
||||||
(wrap-program (string-append #$output "/bin/normalizer")
|
|
||||||
`("GUIX_PYTHONPATH" ":" suffix
|
|
||||||
,(list sitedir python-sitedir)))))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-pytest))
|
(list python-pytest
|
||||||
|
python-setuptools))
|
||||||
(home-page "https://github.com/ousret/charset_normalizer")
|
(home-page "https://github.com/ousret/charset_normalizer")
|
||||||
(synopsis "Universal Charset Detector, alternative to Chardet")
|
(synopsis "Universal Charset Detector, alternative to Chardet")
|
||||||
(description "This library helps you read text from an unknown charset
|
(description "This library helps you read text from an unknown charset
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue