~ruther/guix-local

8010d73407205a63f2f27e719007ee9975ea8602 — Evgeny Pisemsky 1 year, 30 days ago 05516fc
gnu: Add python-pytest-snapshot.

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

Change-Id: Ie3126b6233f53640adb4dcb90e4d348eaf9ffbff
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 31 insertions(+), 0 deletions(-)

M gnu/packages/python-check.scm
M gnu/packages/python-check.scm => gnu/packages/python-check.scm +31 -0
@@ 23,6 23,7 @@
;;; Copyright © 2024 David Elsing <david.elsing@posteo.net>
;;; Copyright © 2024 Eric Bavier <bavier@posteo.net>
;;; Copyright © 2024 Markku Korkeala <markku.korkeala@iki.fi>
;;; Copyright © 2025 Evgeny Pisemsky <mail@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")