[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/11: gnu: Add python-pytest-cookies.
From: |
guix-commits |
Subject: |
09/11: gnu: Add python-pytest-cookies. |
Date: |
Thu, 28 Dec 2023 04:36:51 -0500 (EST) |
mothacehe pushed a commit to branch master
in repository guix.
commit 53f51a908bf80739d60a99c74ffbfc1242db6c11
Author: Troy Figiel <troy@troyfigiel.com>
AuthorDate: Wed Dec 27 22:29:37 2023 +0100
gnu: Add python-pytest-cookies.
* gnu/packages/python-check.scm (python-pytest-cookies): New variable.
Change-Id: I0b085d345bf1bce5fc9c03315da06954cf2125cb
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
gnu/packages/python-check.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index ea74472270..f02ca10298 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -583,6 +583,38 @@ data arrays produced during tests, in particular in cases
where the arrays
are too large to conveniently hard-code them in the tests.")
(license license:bsd-3)))
+(define-public python-pytest-cookies
+ (package
+ (name "python-pytest-cookies")
+ (version "0.7.0")
+ (source
+ (origin
+ ;; No tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/hackebrot/pytest-cookies")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1x7ny6mx1siy9law1cv1i63nvv9ds2g1dlagm40l8qymxry43mjn"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv")))))))
+ (native-inputs (list python-pytest))
+ (propagated-inputs (list python-cookiecutter))
+ (home-page "https://github.com/hackebrot/pytest-cookies")
+ (synopsis "Pytest plugin for Cookiecutter templates")
+ (description
+ "This Pytest plugin adds a @code{cookies} fixture, which is a
+wrapper for the Cookiecutter API. This fixture helps you verify that
+your template is working as expected and takes care of cleaning up after
+running the tests.")
+ (license license:expat)))
+
(define-public python-pytest-doctestplus
(package
(name "python-pytest-doctestplus")
- branch master updated (931d893c55 -> bc509aba83), guix-commits, 2023/12/28
- 03/11: gnu: Add rust-compiletest-rs-0.10., guix-commits, 2023/12/28
- 05/11: gnu: Add rust-rpds-1., guix-commits, 2023/12/28
- 07/11: gnu: cdparanoia: Fix cross-compiling., guix-commits, 2023/12/28
- 11/11: gnu: Add python-ast-decompiler., guix-commits, 2023/12/28
- 09/11: gnu: Add python-pytest-cookies.,
guix-commits <=
- 01/11: gnu: Add rust-unsize-1., guix-commits, 2023/12/28
- 02/11: gnu: Add rust-triomphe-0.1., guix-commits, 2023/12/28
- 04/11: gnu: Add rust-archery-1., guix-commits, 2023/12/28
- 06/11: gnu: Add python-rpds-py., guix-commits, 2023/12/28
- 08/11: gnu: sssd: Update to 2.9.3., guix-commits, 2023/12/28
- 10/11: gnu: python-flake8-isort: Update to 6.1.0., guix-commits, 2023/12/28