gnu: Add python-syrupy.

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

Change-Id: Idfe441ee8e56a02ec2c28247b3f4557e5440ebef
This commit is contained in:
Sharlatan Hellseher 2025-07-01 15:28:56 +01:00
parent 9466dea10d
commit 223aeeb97d
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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")