summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-10-25 16:29:31 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-29 00:05:47 +0000
commite3becacad96bad783eb9d00a6b3d032d5b21fc47 (patch)
treec90a62ef4b887c89b58972eebc94ca512fd3fe0b
parent42360fd11fbbc55fabbf8a2310be28d4a86084f5 (diff)
gnu: python-rst2ansi: Update to 0.1.5-0.c6f390b.
* gnu/packages/python-xyz.scm (python-rst2ansi): Update to 0.1.5-0.c6f390b. [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:tests?>: Disable them. <#:phases>: Add 'check phase replacement. [native-inputs]: Add python-cram, python-setuptools. [description]: Improve style. Change-Id: Ic9fce5aedec3b41249838224cb3ed03e154e6521 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/python-xyz.scm35
1 files changed, 25 insertions, 10 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 56dad43f4b4..bd5b743e5df 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24251,22 +24251,37 @@ console.")
(define-public python-rst2ansi
(package
(name "python-rst2ansi")
- (version "0.1.5")
+ (properties '((commit . "c6f390b45be689a5760060c990e3fe10f502e671")
+ (revision . "0")))
+ (version (git-version "0.1.5"
+ (assoc-ref properties 'revision)
+ (assoc-ref properties 'commit)))
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "rst2ansi" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Snaipe/python-rst-to-ansi")
+ (commit (assoc-ref properties 'commit))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "0vzy6gd60l79ff750scl0sz48r1laalkl6md6dwzah4dcadgn5qv"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-docutils))
+ (base32 "0vsn1jjhm1hx0q5i954lyhny2yvn619am1di03aypfl0wm1mh7qd"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:tests? #f ; 2 tests fail with additional line characters
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "cram" "test" "-v")))))))
+ (native-inputs (list python-cram python-setuptools))
+ (propagated-inputs (list python-docutils))
(home-page "https://github.com/Snaipe/python-rst-to-ansi")
(synopsis "Convert RST to ANSI-decorated console output")
(description
- "Python module dedicated to rendering RST (reStructuredText) documents
- to ansi-escaped strings suitable for display in a terminal.")
+ "Python module dedicated to rendering RST (reStructuredText) documents to
+ansi-escaped strings suitable for display in a terminal.")
(license license:expat)))
(define-public python-ansi2html