Subject: bug#75660: closed ([PATCH] gnu: Add python-pytest-snapshot.)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 08 Feb 2025 18:06:01 +0000

Your bug report

#75660: [PATCH] gnu: Add python-pytest-snapshot.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
75660: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=75660
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: [PATCH] gnu: Add python-pytest-snapshot.
From: Sharlatan Hellseher <[email-masked]>
To: [email-masked]
Date: Sat, 08 Feb 2025 18:05:25 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

I've reset it to python-check.

Pushed to master as 8010d73407205a63f2f27e719007ee9975ea8602.

--
Oleg

Subject: [PATCH] gnu: Add python-pytest-snapshot.
From: Evgeny Pisemsky <[email-masked]>
To: [email-masked]
Date: Sun, 19 Jan 2025 01:40:08 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

>From ee9e9c8cfd57a08a92263da5d6bec877bb8f2887 Mon Sep 17 00:00:00 2001
Message-ID: <[email-masked]>
From: Evgeny Pisemsky <[email-masked]>
Date: Sun, 19 Jan 2025 01:33:03 +0300
Subject: [PATCH] gnu: Add python-pytest-snapshot.

* gnu/packages/check.scm (python-pytest-snapshot): New variable.

Change-Id: I3cdf14a0da20e7f8e80f82e1b02f822eb5b26ad5
---
 gnu/packages/check.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index e28564c0b0..b2e0458c49 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -53,6 +53,7 @@
 ;;; Copyright © 2024 Navid Afkhami <[email-masked]>
 ;;; Copyright © 2024 gemmaro <[email-masked]>
 ;;; Copyright © 2024 Ashvith Shetty <[email-masked]>
+;;; Copyright © 2025 Evgeny Pisemsky <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -4321,6 +4322,32 @@ (define-public python-pytest-tornado5
 markers to simplify testing of asynchronous tornado applications.")
     (license license:asl2.0)))
 
+(define-public python-pytest-snapshot
+  (package
+    (name "python-pytest-snapshot")
+    (version "0.9.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pytest-snapshot" version))
+       (sha256
+        (base32 "1wxp9pv5yqpj3fk450ld1mjhhdxyvssgi6gqxyghz1iyphx3q0f7"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      ;; Skip failing test. Related upstream issue:
+      ;; https://github.com/joseph-roitman/pytest-snapshot/issues/71
+      #:test-flags #~(list "-k" "not test_assert_match_failure_bytes")))
+    (propagated-inputs (list python-pytest))
+    (native-inputs (list python-setuptools python-setuptools-scm python-wheel))
+    (home-page "https://github.com/joseph-roitman/pytest-snapshot")
+    (synopsis "Pytest plugin for snapshot testing")
+    (description
+     "This package provides a plugin for snapshot testing with pytest.  It
+can be used to test that the value of an expression does not change
+unexpectedly.")
+    (license license:expat)))
+
 (define-public guile-proba
   (package
     (name "guile-proba")

base-commit: 42295555ca9648e894569f40e9b28768be3f788a
-- 
2.47.1