summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2026-05-11 00:13:25 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-05-18 14:37:06 +0100
commit36b20e7c82757e6b97a3c459841bf2c3451cad27 (patch)
tree3909bbdeedc20128fb12c215210e9b2d985929d9
parent99f8f9397ca06ce7cd218419ba29094343026baa (diff)
gnu: Add python-diagnostic.
* gnu/packages/python-check.scm (python-diagnostic): New variable. Change-Id: I207be2a99d05521d8de9723df061a8b8ab08ec03 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/python-check.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 7be843d76f..ffddd650bb 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1005,6 +1005,34 @@ much more.")
solver (theorem prover) for Deal.")
(license license:expat)))
+(define-public python-diagnostic
+ (package
+ (name "python-diagnostic")
+ (version "3.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pradyunsg/diagnostic")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "119js783bfq89slhkxispl01xzv4a2c2wa59armncl6x23shrr02"))))
+ (build-system pyproject-build-system)
+ (arguments
+ ;; This test fails due to meaningless print differences.
+ (list #:test-flags #~(list "-k" "not test_directory_traversal")))
+ (propagated-inputs
+ (list python-docutils python-markdown-it-py python-rich))
+ (native-inputs
+ (list python-flit-core python-pytest))
+ (home-page "https://github.com/pradyunsg/diagnostic")
+ (synopsis "Tooling to present errors in Python")
+ (description
+ "This package provides tooling to makes it easier to build command line
+tools with great error reporting.")
+ (license license:expat)))
+
(define-public python-doc8
(package
(name "python-doc8")