From 5a45e69d527774c3b89bbf753f1eafc41becd38d Mon Sep 17 00:00:00 2001 From: Jake Forster Date: Sat, 26 Jul 2025 21:09:09 +0930 Subject: [PATCH] gnu: python-colored: Update to 2.3.0 and enable tests. * gnu/packages/python-xyz.scm (python-colored): Update to 2.3.0. [arguments]: Remove '#:tests? #false'. <#:phases>: New phase 'pre-check. [native-inputs]: Remove python-setuptools and python-wheel. Add python-flit-core and python-pytest. Change-Id: Iff216a7df0beca05edbe10d0d103586c3e0ece7d Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index dc93c0affbb..bd7109841a2 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -1933,7 +1933,7 @@ HoloViews, and Datashader.") (define-public python-colored (package (name "python-colored") - (version "1.4.4") + (version "2.3.0") (source (origin (method git-fetch) (uri (git-reference @@ -1942,10 +1942,17 @@ HoloViews, and Datashader.") (file-name (git-file-name name version)) (sha256 (base32 - "196ins0m7f90xz5dw764dlx060ziqbcydqzzq40b4ir5858baf3r")))) + "00332xdjw5fcj5wx848693355nvlgcf8qmpwkvz3rngfg1q5bxa6")))) (build-system pyproject-build-system) - (arguments (list #:tests? #false)) ;the tests are not run automatically - (native-inputs (list python-setuptools python-wheel)) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda _ + ;; Tests expect ANSI escape codes for colors. + (setenv "FORCE_COLOR" "1")))))) + (native-inputs (list python-flit-core python-pytest)) (home-page "https://gitlab.com/dslackw/colored") (synopsis "Simple library for color and formatting to terminal") (description "This is a very simple Python library for color and