guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Garek Dyszel
Subject: [bug#58310] [PATCH 07/14] gnu: Add python-pytest-icdiff.
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 <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.
 ;;;
@@ -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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]