[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: gnu: Add python-xunitparser.
From: |
guix-commits |
Subject: |
02/06: gnu: Add python-xunitparser. |
Date: |
Tue, 30 Nov 2021 10:54:44 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit bfaf7b559e80d246ddfcbabbe8f6a100e1764aaf
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Nov 29 18:30:30 2021 +0100
gnu: Add python-xunitparser.
* gnu/packages/python-check.scm (python-xunitparser): New variable.
---
gnu/packages/python-check.scm | 29 ++++++++++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 5b23093..ef8629a 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2019, 2021 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2019, 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
@@ -1799,3 +1799,30 @@ asynchronous HTTP requests it is a bit harder (at least
at the beginning).
The purpose of this package is to provide an easy way to test asynchronous
HTTP requests.")
(license license:expat)))
+
+(define-public python-xunitparser
+ (package
+ (name "python-xunitparser")
+ (version "1.3.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "xunitparser" version))
+ (sha256
+ (base32 "05amn9yik0mxg89iiprkb6lrmc7rlccgvwajrpyfi6zbp8mjdsgn"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ ;; See https://github.com/laurentb/xunitparser/pull/11
+ (add-after 'unpack 'fix-test-suite
+ (lambda _
+ (substitute* "xunitparser.py"
+ (("(^ +)self.stderr = None" m indent)
+ (string-append m "\n" indent "self._cleanup = False\n"))))))))
+ (home-page "http://git.p.engu.in/laurentb/xunitparser/")
+ (synopsis "Read JUnit/XUnit XML files and map them to Python objects")
+ (description "xunitparser reads a JUnit/XUnit XML file and maps it to
+Python objects. It tries to use the objects available in the standard
+@code{unittest} module.")
+ (license license:expat)))
- branch master updated (d95a982 -> 5bdf1b6), guix-commits, 2021/11/30
- 03/06: gnu: Add python-woob., guix-commits, 2021/11/30
- 04/06: gnu: r-crul: Update to 1.2.0., guix-commits, 2021/11/30
- 01/06: gnu: r-umi4cpackage: Embed references to perl and bowtie2., guix-commits, 2021/11/30
- 05/06: gnu: Add r-gistr., guix-commits, 2021/11/30
- 02/06: gnu: Add python-xunitparser.,
guix-commits <=
- 06/06: gnu: Add r-rbokeh., guix-commits, 2021/11/30