>From 39eef77658f400ccfceb65b6fcd3f4996ae90807 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 1 Mar 2021 14:20:03 +0100 Subject: [PATCH 11/12] gnu: Add python-pytest-expect. * gnu/packages/python-check.scm (python-pytest-expect): New variable. --- gnu/packages/python-check.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 9849b16685..4139f3cdde 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -1251,3 +1251,31 @@ help in debugging failures and optimizing the scheduler to improve speed.") (description "A pytest plugin for Sanic. It helps you to test your code asynchronously.") (license license:expat))) + +(define-public python-pytest-expect + (package + (name "python-pytest-expect") + (version "1.1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-expect" version)) + (sha256 + (base32 + "0iyq3zd1g5ffaz2wv6mskjfn84sfbyh0j209glcrh1s50hkldd1n")))) + (build-system python-build-system) + (arguments `(#:tests? #f)) ; no tests via pypi + (propagated-inputs + `(("python-pytest" ,python-pytest) ; package declares this dependency + ("python-u-msgpack" ,python-u-msgpack))) + (home-page + "https://github.com/gsnedders/pytest-expect") + (synopsis + "Py.test plugin to store test expectations and mark tests based on them") + (description + "A py.test plugin that stores test expectations by saving the set of +failing tests, allowing them to be marked as xfail when running them in future. +The tests expectations are stored such that they can be distributed alongside +the tests.") + (license license:expat))) + -- 2.26.2