@@ -16,6 +16,7 @@
;;; Copyright © 2022 Malte Frank Gerdes <malte.f.gerdes@gmail.com>
;;; Copyright © 2022 Felix Gruber <felgru@posteo.net>
;;; Copyright © 2022 Tomasz Jeneralczyk <tj@schwi.pl>
+;;; Copyright © 2022 Garek Dyszel <garekdyszel@disroot.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -2468,3 +2469,24 @@ (define-public python-xvfbwrapper
physical display. Only a network layer is necessary. Xvfb is useful for
running acceptance tests on headless servers.")
(license license:expat)))
+
+(define-public python-pytest-icdiff
+ (package
+ (name "python-pytest-icdiff")
+ (version "0.6")
+ (source (origin
+ ;; Tests fail in git version, but not in the PyPi version.
+ ;; The PyPi version is also more up-to-date.
+ (method url-fetch)
+ (uri (pypi-uri "pytest-icdiff" version))
+ (sha256
+ (base32
+ "1b8vzn2hvv6x25w1s446q1rfsbdik617lzpal3qb94x8a12yzwg8"))))
+ (build-system python-build-system)
+ (propagated-inputs (list python python-pypa-build python-icdiff
+ python-pprintpp))
+ (native-inputs (list python-pytest))
+ (home-page "https://github.com/hjwp/pytest-icdiff")
+ (synopsis "Use icdiff for better error messages in pytest assertions")
+ (description "Use icdiff for better error messages in pytest assertions.")
+ (license (license:non-copyleft "LICENSE"))))