summaryrefslogtreecommitdiff
path: root/gnu/packages/python-check.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-07-01 15:28:56 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-07-02 23:16:20 +0100
commit223aeeb97dd354e227d46430c1874aa488b2187a (patch)
treefcfd69f6d8feb02724037e82af18fa0551534610 /gnu/packages/python-check.scm
parent9466dea10d7cc009afa164d0a2a5d04395b3129f (diff)
gnu: Add python-syrupy.
* gnu/packages/python-check.scm (python-syrupy): New variable. Change-Id: Idfe441ee8e56a02ec2c28247b3f4557e5440ebef
Diffstat (limited to 'gnu/packages/python-check.scm')
-rw-r--r--gnu/packages/python-check.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 310abccd08c..2f2af39837f 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -3709,6 +3709,43 @@ parsed examples as part of your normal test run. Integration is
provided for the main Python test runners.")
(license license:expat)))
+(define-public python-syrupy
+ (package
+ (name "python-syrupy")
+ (version "4.9.1")
+ (source
+ (origin
+ (method git-fetch) ;no tests in PyPI archive
+ (uri (git-reference
+ (url "https://github.com/syrupy-project/syrupy")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "10q1xdwbcy9jfq8gd4r9q4r2p2zpcfrh4yj58nl9sbr2nc3irbh0"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "invoke" "test")))))))
+ (native-inputs
+ (list python-invoke
+ python-debugpy
+ python-twine
+ python-poetry-core
+ python-pytest
+ python-pytest-xdist
+ python-setuptools-scm))
+ (home-page "https://github.com/syrupy-project/syrupy")
+ (synopsis "Pytest Snapshot Test Utility")
+ (description
+ "This package implements a functionality to write tests which assert
+immutability of computed results.")
+ (license license:asl2.0)))
+
(define-public python-tappy
(package
(name "python-tappy")