summaryrefslogtreecommitdiff
path: root/gnu/packages/python-check.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/python-check.scm')
-rw-r--r--gnu/packages/python-check.scm42
1 files changed, 42 insertions, 0 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 0328aabf6c9..b6afb4566c2 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -15,6 +15,7 @@
;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
;;; Copyright © 2020, 2021, 2025 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2020 Tanguy Le Carrour <tanguy@bioneland.org>
+;;; Copyright © 2021 Hugo Lecomte <hugo.lecomte@inria.fr>
;;; Copyright © 2021 Lars-Dominik Braun <lars@6xq.net>
;;; Copyright © 2021-2025 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2021 Brendan Tildesley <mail@brendan.scot>
@@ -26,6 +27,7 @@
;;; Copyright © 2022 Felix Gruber <felgru@posteo.net>
;;; Copyright © 2022 Tomasz Jeneralczyk <tj@schwi.pl>
;;; Copyright © 2022 jgart <jgart@dismail.de>
+;;; Copyright © 2023 Antero Mejr <antero@mailbox.org>
;;; Copyright © 2023 John Kehayias <john.kehayias@protonmail.com>
;;; Copyright © 2024 Danny Milosavljevic <dannym@friendly-machines.com>
;;; Copyright © 2024-2025 Troy Figiel <troy@troyfigiel.com>
@@ -3533,6 +3535,46 @@ interaction, like key presses and mouse clicks.")
HTTP traffic.")
(license license:expat)))
+(define-public python-pytest-regressions
+ (package
+ (name "python-pytest-regressions")
+ (version "2.8.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest_regressions" version))
+ (sha256
+ (base32 "08fjzhsp4akdzn08d0nx2b9k16iad7wvdw4fqwv3sap0pq40gn8s"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; To reduce closure size it prevents including python-numpy,
+ ;; python-pandas and python-matplotlib.
+ #~(list "--ignore=tests/test_dataframe_regression.py"
+ "--ignore=tests/test_ndarrays_regression.py"
+ "--ignore=tests/test_num_regression.py"
+ "--deselect=tests/test_filenames.py::test_foo"
+ "--deselect=tests/test_filenames.py::TestClass::test_foo"
+ "--deselect=tests/test_filenames.py::TestClassWithIgnoredName::test_foo"
+ "--deselect=tests/test_image_regression.py::test_image_regression"
+ "--deselect=tests/test_image_regression.py::test_image_regression_workflow")))
+ (native-inputs
+ (list python-pytest-bootstrap
+ python-setuptools
+ python-setuptools-scm))
+ (propagated-inputs
+ (list python-pytest-datadir
+ python-pyyaml))
+ (home-page "https://github.com/ESSS/pytest-regressions")
+ (synopsis "Easy to use fixtures to write regression tests")
+ (description
+ "This plugin makes it simple to test general data, images, files, and
+numeric tables by saving expected data in a data directory (courtesy of
+pytest-datadir) that can be used to verify that future runs produce the same
+data.")
+ (license license:expat)))
+
(define-public python-pytest-remotedata
(package
(name "python-pytest-remotedata")