Subject: [bug#58310] [PATCH 07/14] gnu: Add python-pytest-icdiff.

From: Garek Dyszel <[email-masked]>
Date: Wed, 05 Oct 2022 13:46:36 -0400

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 2358e7448d..6d0885d6dc 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -16,6 +16,7 @@
 ;;; Copyright © 2022 Malte Frank Gerdes <[email-masked]>
 ;;; Copyright © 2022 Felix Gruber <[email-masked]>
 ;;; Copyright © 2022 Tomasz Jeneralczyk <[email-masked]>
+;;; Copyright © 2022 Garek Dyszel <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -182,6 +183,26 @@ (define-public python-pytest-csv
 it adds to the Pytest command line interface (CLI).")
     (license license:gpl3+)))
 
+(define-public python-pytest-icdiff
+  (package
+    (name "python-pytest-icdiff")
+    (version "0.6")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "pytest-icdiff" version))
+              (sha256
+               (base32
+                "1b8vzn2hvv6x25w1s446q1rfsbdik617lzpal3qb94x8a12yzwg8"))))
+    (build-system python-build-system)
+    (propagated-inputs (list python-pypa-build python-icdiff python-pprintpp))
+    (native-inputs (list python-pytest))
+    (home-page "https://github.com/hjwp/pytest-icdiff")
+    (synopsis "Colored diffs using @code{python-icdiff} for pytest output")
+    (description
+     "This package uses @code{python-icdiff} to add color to the output of
+pytest assertions.")
+    (license (license:non-copyleft "LICENSE"))))
+
 (define-public python-testfixtures
   (package
     (name "python-testfixtures")
-- 
2.37.3