rekado pushed a commit to branch wip-python-team
in repository guix.

commit 714baf2295ff850a5aac6d44b5adc9dc6020c45b
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Thu May 2 23:00:20 2024 +0200

    gnu: python-termcolor: Update to 2.4.0.
    
    * gnu/packages/python-xyz.scm (python-termcolor): Update to 2.4.0.
    [build-system]: Use pyproject-build-system.
    [arguments]: Add 'fix-pyproject build phase.
    [native-inputs]: Add python-hatch-vcs, python-hatchling, python-pytest, and
    python-pytest-cov.
    
    Change-Id: I1b824ca6f125305169c3f64f00dbacbeb77d0ed0
---
 gnu/packages/python-xyz.scm | 21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b9a7c0b222..e96044d816 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16493,18 +16493,29 @@ a hash value.")
 (define-public python-termcolor
   (package
     (name "python-termcolor")
-    (version "1.1.0")
+    (version "2.4.0")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "termcolor" version))
        (sha256
         (base32
-         "0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x"))))
-    (build-system python-build-system)
+         "0ykvmjrsjr5w4h63x7qmx6rsdb1p5a4nv8wgg7nl3b688xhfbfda"))))
+    (build-system pyproject-build-system)
     (arguments
-     ;; There are no tests.
-     `(#:tests? #f))
+     (list
+      #:phases
+      '(modify-phases %standard-phases
+         (add-after 'unpack 'fix-pyproject
+           (lambda _
+             ;; The build system doesn't like to hear of Python 3.13.
+             (substitute* "pyproject.toml"
+               (("  \"Programming Language .*") "")))))))
+    (native-inputs
+     (list python-hatch-vcs
+           python-hatchling
+           python-pytest
+           python-pytest-cov))
     (home-page "https://pypi.org/project/termcolor/";)
     (synopsis "ANSII Color formatting for terminal output")
     (description

Reply via email to