gnu: python-regex: Improve package style.

* gnu/packages/python-xyz.scm (python-regex): Use G-expressions.
  Fix indentation.
  [description]: Start from a new line and fix fill column.

Change-Id: I423719c74c606dd610b3f7da4dc6fc1e6c569f71
This commit is contained in:
Sharlatan Hellseher 2025-07-29 18:45:32 +01:00
parent 4eed3ad1ba
commit 1dbc5d1aad
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -27503,27 +27503,28 @@ class ShellOutSSHClientTests"))))
(package (package
(name "python-regex") (name "python-regex")
(version "2022.1.18") (version "2022.1.18")
(source (origin (source
(method url-fetch) (origin
(uri (pypi-uri "regex" version)) (method url-fetch)
(sha256 (uri (pypi-uri "regex" version))
(base32 (sha256
"05ir92d0cmv8wkafn3r05j5q47l6shg7cpdblp2a8m407b02vwwp")))) (base32 "05ir92d0cmv8wkafn3r05j5q47l6shg7cpdblp2a8m407b02vwwp"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
'(#:phases #~(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'check (replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs) (add-installed-pythonpath inputs outputs)
(invoke "python" "-c" (invoke "python" "-c"
"from regex.test_regex import test_main ; test_main()")))))) "from regex.test_regex import test_main ; test_main()"))))))
(home-page "https://bitbucket.org/mrabarnett/mrab-regex") (home-page "https://bitbucket.org/mrabarnett/mrab-regex")
(synopsis "Alternative regular expression module") (synopsis "Alternative regular expression module")
(description "This regular expression implementation is backwards- (description
compatible with the standard @code{re} module, but offers additional "This regular expression implementation is backwards-compatible with the
functionality like full case-folding for case-insensitive matches in Unicode.") standard @code{re} module, but offers additional functionality like full
(license license:psfl))) case-folding for case-insensitive matches in Unicode.")
(license license:psfl)))
(define-public python-rencode (define-public python-rencode
(package (package