summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2026-02-14 23:22:07 +0900
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2026-03-26 06:35:27 +0100
commitee5cd30d518c6f6e7e46593cf961fb4731dc90b6 (patch)
tree9094301411ddd4f8a70d280007bd194481ee2f80 /gnu
parentaa6cca24149566eff9847f3cebd57b503274363d (diff)
gnu: Add python-ansi-styles.
* gnu/packages/python-xyz.scm (python-ansi-styles): New variable. Change-Id: I068c82a9d8f0af6b2af913824f96fbe268ce3107 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-xyz.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6321840077e..242a53a361c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -34097,6 +34097,32 @@ Psycopg 2 is both Unicode and Python 3 friendly.")
async I/O support.")
(license license:gpl2+)))
+(define-public python-ansi-styles
+ ;; Releases are not tagged in Git:
+ ;; https://github.com/shawwn/ansi-styles-python/issues/2
+ (let ((commit "c1d79c1defaf68c4f1bfe3f9b3fa49667404f5f4")
+ (revision "0"))
+ (package
+ (name "python-ansi-styles")
+ (version (git-version "0.2.2" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/shawwn/ansi-styles-python")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0595v5nxh1j3yv4k668x6yjvabjfpckgjzz6s89cfmwkd70sdkn0"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-poetry-core python-pytest))
+ (home-page "https://github.com/shawwn/ansi-styles-python")
+ (synopsis "ANSI escape codes for styling strings in the terminal")
+ (description
+ "This Python package provide ANSI escape codes
+for styling strings in the terminal.")
+ (license license:expat))))
+
(define-public python-ansicolors
;; XXX: Not maintained fork since 2017, consider to remove when there is no
;; any users.