This is an automated email from the git hooks/post-receive script.

sharlatan pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 8010d73407 gnu: Add python-pytest-snapshot.
8010d73407 is described below

commit 8010d73407205a63f2f27e719007ee9975ea8602
Author: Evgeny Pisemsky <m...@pisemsky.site>
AuthorDate: Fri Feb 7 19:51:05 2025 +0000

    gnu: Add python-pytest-snapshot.
    
    * gnu/packages/check.scm (python-pytest-snapshot): New variable.
    
    Change-Id: Ie3126b6233f53640adb4dcb90e4d348eaf9ffbff
    Signed-off-by: Sharlatan Hellseher <sharlata...@gmail.com>
---
 gnu/packages/python-check.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 8d494fe09a..aac500f443 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -23,6 +23,7 @@
 ;;; Copyright © 2024 David Elsing <david.els...@posteo.net>
 ;;; Copyright © 2024 Eric Bavier <bav...@posteo.net>
 ;;; Copyright © 2024 Markku Korkeala <markku.korke...@iki.fi>
+;;; Copyright © 2025 Evgeny Pisemsky <m...@pisemsky.site>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -659,6 +660,36 @@ tests at the granularity of individual test cases, which 
can be run in
 parallel and on multiple machines.")
       (license license:expat))))
 
+(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")))
+    (native-inputs
+     (list python-setuptools
+           python-setuptools-scm
+           python-wheel))
+    (propagated-inputs
+     (list python-pytest))
+    (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 python-testfixtures
   (package
     (name "python-testfixtures")

Reply via email to