unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: jgart via Guix-patches via <guix-patches@gnu.org>
To: 59190@debbugs.gnu.org
Cc: "Ludovic Courtès" <ludo@gnu.org>, jgart <jgart@dismail.de>,
	"Efraim Flashner" <efraim@flashner.co.il>
Subject: [bug#59190] [PATCH v2] gnu: Add python-pytest-parawtf.
Date: Mon, 28 Nov 2022 23:34:25 -0600	[thread overview]
Message-ID: <20221129053424.3030-1-jgart@dismail.de> (raw)
In-Reply-To: <20221111063718.24140-1-jgart@dismail.de>

* gnu/packages/python-check.scm (python-pytest-parawtf): New variable.

Hi Ludo and Efraim. Here's v2.

I disabled the failing parametrized tests and added a comment to a
pending issue I opened with upstream regarding fixing the failing tests.

all best,

jgart

---
 gnu/packages/python-check.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 749902271b..486abf1c13 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -16,6 +16,7 @@
 ;;; Copyright © 2022 Malte Frank Gerdes <malte.f.gerdes@gmail.com>
 ;;; Copyright © 2022 Felix Gruber <felgru@posteo.net>
 ;;; Copyright © 2022 Tomasz Jeneralczyk <tj@schwi.pl>
+;;; Copyright © 2022 jgart <jgart@dismail.de>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2439,6 +2440,34 @@ (define-public python-sybil
 provided for the main Python test runners.")
     (license license:expat)))
 
+(define-public python-pytest-parawtf
+  (package
+    (name "python-pytest-parawtf")
+    (version "1.0.2")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "pytest-parawtf" version))
+              (sha256
+               (base32
+                "08s86hy58lvrd90cnayzydvac4slaflj0ph9yknakcc42anrm023"))))
+    (build-system python-build-system)
+    (arguments
+     (list
+       #:phases
+       #~(modify-phases %standard-phases
+           (replace 'check
+             (lambda* (#:key tests? #:allow-other-keys)
+               (when tests?
+                 ;; https://github.com/flub/pytest-parawtf/issues/1
+                 (invoke "pytest" "-k" "not test_mark")))))))
+    (propagated-inputs (list python-pytest))
+    (home-page "https://github.com/flub/pytest-parawtf/")
+    (synopsis "Finally spell paramete?ri[sz]e correctly")
+    (description
+"@code{python-pytest} uses one of four different spellings of
+parametrize.  This plugin allows you to use all four.")
+    (license license:expat)))
+
 (define-public python-pytest-httpx
   (package
     (name "python-pytest-httpx")
-- 
2.38.1





  parent reply	other threads:[~2022-11-29  5:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-11  6:37 [bug#59190] [PATCH] gnu: Add python-pytest-parawtf jgart via Guix-patches via
2022-11-15  9:16 ` Efraim Flashner
2022-11-15 14:51   ` jgart via Guix-patches via
2022-11-28 21:59     ` Ludovic Courtès
2022-11-29  5:34 ` jgart via Guix-patches via [this message]
2022-11-29  7:23   ` bug#59190: [PATCH v2] " Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221129053424.3030-1-jgart@dismail.de \
    --to=guix-patches@gnu.org \
    --cc=59190@debbugs.gnu.org \
    --cc=efraim@flashner.co.il \
    --cc=jgart@dismail.de \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).