Subject: bug#41969: closed (Re: [bug#41969] [PATCH] gnu: Add python-pytest-lazy-fixture)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 22 Jun 2020 18:22:02 +0000

Your bug report

#41969: [PATCH] gnu: Add python-pytest-lazy-fixture

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
41969: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=41969
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#41969] [PATCH] gnu: Add python-pytest-lazy-fixture
From: Efraim Flashner <[email-masked]>
To: Vinicius Monego <[email-masked]>
Cc: [email-masked]
Date: Mon, 22 Jun 2020 21:20:39 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

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   <[email-masked]>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

Subject: [PATCH] gnu: Add python-pytest-lazy-fixture
From: Vinicius Monego <[email-masked]>
To: [email-masked]
Cc: Vinicius Monego <[email-masked]>
Date: Sat, 20 Jun 2020 17:38:49 -0300
List-Id: <debbugs-submit.debbugs.gnu.org>

* 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 <[email-masked]>
 ;;; Copyright © 2020 Brice Waegeneire <[email-masked]>
 ;;; Copyright © 2020 Josh Marshall <[email-masked]>
+;;; Copyright © 2020 Vinicius Monego <[email-masked]>
 ;;;
 ;;; 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