From fe0fe1a37494f1894e2425dad2a239c557cf9925 Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Fri, 13 Nov 2020 09:54:01 +0100 Subject: [PATCH 09/10] gnu: Add python-pytest-sanic. * gnu/packages/python-check.scm (python-pytest-sanic): 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 dcd4bb90d8..314ca5795c 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -1078,3 +1078,31 @@ any Python VM with basically no runtime overhead.") (description "Robber is a Python assertion library for test-driven and behavior-driven development (TDD and BDD).") (license license:expat))) + +;; This is only used by python-sanic +(define-public python-pytest-sanic + (package + (name "python-pytest-sanic") + (version "1.6.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytest-sanic" version)) + (sha256 + (base32 + "02ajd8z77ahi69kzkz200qgxrb4s2j4qb6k8j9ds1kz6qa6fsa34")))) + (build-system python-build-system) + (arguments + ;; Tests depend on python-sanic. + `(#:tests? #f)) + (propagated-inputs + `(("python-aiohttp" ,python-aiohttp) + ("python-async-generator" + ,python-async-generator) + ("python-pytest" ,python-pytest))) + (home-page + "https://github.com/yunstanford/pytest-sanic") + (synopsis "Pytest plugin for Sanic") + (description "A pytest plugin for Sanic. It helps you to test your +code asynchronously.") + (license license:expat))) -- 2.26.2