From 4e25800be8a53279e93ba7797b420be78a46fbeb Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Thu, 20 Jan 2022 22:34:36 +0100 Subject: [PATCH v6 12/28] gnu: Add a test-less python-pytest-cases. * gnu/packages/python-xyz.scm (python-pytest-cases-minimal): New variable. --- gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9a6c2429f4..6b79fad584 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -27321,6 +27321,38 @@ (define python-pytest-steps-minimal tests in pytest.") (license license:bsd-3))) +(define python-pytest-cases-minimal + (package + (name "python-pytest-cases-minimal") + (version "3.6.13") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-cases" version)) + (sha256 + (base32 + "0g3lp4m19fk83kl2b4akwg7wqqaqlfzp4v6qcb0hq27161xyh8yl")))) + (build-system python-build-system) + (propagated-inputs (list python-decopatch-minimal python-makefun)) + (native-inputs (list python-pytest + python-pytest-runner + python-setuptools-scm + python-pytest-asyncio + python-pytest-harvest-minimal + python-pytest-steps-minimal)) + (home-page "https://github.com/smarie/python-pytest-cases") + (synopsis "Separate test code from test cases in @samp{pytest}") + (description + "@samp{pytest-cases} leverages @samp{pytest} and its great +@samp{@@pytest.mark.parametrize decorator}, so that you can @strong{separate +your test cases from your test functions}. In addition, @samp{pytest-cases} +provides several useful goodies to empower @samp{pytest}. In particular it +improves the fixture mechanism to support \"fixture unions\". This is a +@strong{major change} in the internal @samp{pytest} engine, unlocking many +possibilities such as using fixture references as parameter values in a test +function.") + (license license:bsd-3))) + (define-public python-frozendict (package (name "python-frozendict") -- 2.36.1