summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorJake Forster <jakecameron.forster@gmail.com>2025-07-26 21:09:09 +0930
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-07-26 18:30:18 +0100
commit5a45e69d527774c3b89bbf753f1eafc41becd38d (patch)
treeb2a2dec88dc48819b855b528fbbe63a63a04e327 /gnu/packages/python-xyz.scm
parent7327bab813defed79701d57ba894a423b0fb1487 (diff)
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm15
1 files changed, 11 insertions, 4 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index dc93c0affb..bd7109841a 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