gnu: python-webencodings: Switch to pyproject-build-system.

* gnu/packages/python-web.scm (python-webencodings)
  [build-system]: Use pyproject.
  [arguments] <phases>: Use default 'check.
  [description]: Fix fill-column indentation.

Change-Id: I543193509591b46fa176575bf0c82a98c66e8d28
This commit is contained in:
Sharlatan Hellseher 2025-08-05 16:23:59 +01:00
parent 11a549bdd7
commit cb828a2d2c
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3508,38 +3508,32 @@ desired
(package (package
(name "python-webencodings") (name "python-webencodings")
(version "0.5.1") (version "0.5.1")
(source (origin (source
(method url-fetch) (origin
(uri (pypi-uri "webencodings" version)) (method url-fetch)
(sha256 (uri (pypi-uri "webencodings" version))
(base32 (sha256
"08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk")))) (base32 "08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
'(#:phases (list #:test-flags #~(list "webencodings/tests.py")))
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "py.test" "-v" "webencodings/tests.py")
#t)))))
(native-inputs (native-inputs
(list python-pytest)) (list python-pytest python-setuptools))
(home-page "https://github.com/SimonSapin/python-webencodings") (home-page "https://github.com/SimonSapin/python-webencodings")
(synopsis "Character encoding aliases for legacy web content") (synopsis "Character encoding aliases for legacy web content")
(description (description
"In order to be compatible with legacy web content when interpreting "In order to be compatible with legacy web content when interpreting
something like @code{Content-Type: text/html; charset=latin1}, tools need something like @code{Content-Type: text/html; charset=latin1}, tools need to
to use a particular set of aliases for encoding labels as well as some use a particular set of aliases for encoding labels as well as some overriding
overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on rules. For example, @code{US-ASCII} and @code{iso-8859-1} on the web are
the web are actually aliases for @code{windows-1252}, and a @code{UTF-8} actually aliases for @code{windows-1252}, and a @code{UTF-8} or @code{UTF-16}
or @code{UTF-16} BOM takes precedence over any other encoding declaration. BOM takes precedence over any other encoding declaration. The WHATWG
The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard @url{https://encoding.spec.whatwg.org/,Encoding} standard defines all such
defines all such details so that implementations do not have to details so that implementations do not have to reverse-engineer each other.
reverse-engineer each other.
This module implements the Encoding standard and has encoding labels and This module implements the Encoding standard and has encoding labels and BOM
BOM detection, but the actual implementation for encoders and decoders detection, but the actual implementation for encoders and decoders is
is Pythons.") Pythons.")
(license license:bsd-3))) (license license:bsd-3)))
(define-public python-omnipath (define-public python-omnipath