unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#41969] [PATCH] gnu: Add python-pytest-lazy-fixture
@ 2020-06-20 20:38 Vinicius Monego
  2020-06-22 18:20 ` bug#41969: " Efraim Flashner
  0 siblings, 1 reply; 2+ messages in thread
From: Vinicius Monego @ 2020-06-20 20:38 UTC (permalink / raw)
  To: 41969; +Cc: Vinicius Monego

* gnu/packages/check.scm (python-pytest-lazy-fixture): New variable.
---
 gnu/packages/check.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 7d7fd189bc..7b98c029a5 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -33,6 +33,7 @@
 ;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
 ;;; Copyright © 2020 Josh Marshall <joshua.r.marshall.1991@gmail.com>
+;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -971,6 +972,36 @@ supports coverage of subprocesses.")
 (define-public python2-pytest-runner-2
   (package-with-python2 python-pytest-runner-2))
 
+(define-public python-pytest-lazy-fixture
+  (package
+    (name "python-pytest-lazy-fixture")
+    (version "0.6.3")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "pytest-lazy-fixture" version))
+        (sha256
+          (base32 "1b0hmnsxw4s2wf9pks8dg6dfy5cx3zcbzs8517lfccxsfizhqz8f"))))
+    (build-system python-build-system)
+    (arguments
+     '(#:phases
+        (modify-phases %standard-phases
+          (replace 'check
+            (lambda* (#:key inputs outputs #:allow-other-keys)
+              ;; Make the installed plugin discoverable by Pytest.
+              (add-installed-pythonpath inputs outputs)
+              (invoke "pytest" "-vv"))))))
+    (propagated-inputs
+      `(("python-pytest" ,python-pytest)))
+    (home-page "https://github.com/tvorog/pytest-lazy-fixture")
+    (synopsis "Use fixtures in @code{pytest.mark.parametrize}")
+    (description "This plugin helps to use fixtures in
+@code{pytest.mark.parametrize}")
+    (license license:expat)))
+
+(define-public python2-pytest-lazy-fixture
+  (package-with-python2 python-pytest-lazy-fixture))
+
 (define-public python-pytest-mock
   (package
     (name "python-pytest-mock")
-- 
2.20.1





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#41969: [PATCH] gnu: Add python-pytest-lazy-fixture
  2020-06-20 20:38 [bug#41969] [PATCH] gnu: Add python-pytest-lazy-fixture Vinicius Monego
@ 2020-06-22 18:20 ` Efraim Flashner
  0 siblings, 0 replies; 2+ messages in thread
From: Efraim Flashner @ 2020-06-22 18:20 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: 41969-done

[-- Attachment #1: Type: text/plain, Size: 458 bytes --]

Looks good. I added a period at the end of the description and adjusted
the indentation slightly. I also removed the python2 variant since we're
not adding more python2 packages unless they're actually used for
something.

Patch pushed!


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-22 18:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-20 20:38 [bug#41969] [PATCH] gnu: Add python-pytest-lazy-fixture Vinicius Monego
2020-06-22 18:20 ` bug#41969: " Efraim Flashner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).