guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

248/361: gnu: Add python-pytest-html.


From: guix-commits
Subject: 248/361: gnu: Add python-pytest-html.
Date: Thu, 21 Nov 2024 06:29:28 -0500 (EST)

sharlatan pushed a commit to branch python-team
in repository guix.

commit 8a4dfee206aa75f98aee7ac19b55444e85256d3c
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Wed Nov 6 16:45:29 2024 +0000

    gnu: Add python-pytest-html.
    
    * gnu/packages/python-check.scm (python-pytest-html): New variable.
    
    Change-Id: Idbfd00f31f8064b978e5a15a825b191cf4b5515c
---
 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 9fcbed3c57..7fc4fe1a83 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -888,6 +888,38 @@ namespace which can be used to register helper functions 
without requiring
 someone to import them in their actual tests to use them.")
     (license license:asl2.0)))
 
+(define-public python-pytest-html
+  (package
+    (name "python-pytest-html")
+    (version "4.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pytest_html" version))
+       (sha256
+        (base32 "01vgd2bbk3n9wcqzx9dv72qgkx684l8cp92n9c3ll3w0wn51x83h"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-flags
+      ;; It requires running browser for selenium.
+      #~(list "--ignore=testing/test_integration.py"
+              "--ignore=testing/test_e2e.py")))
+    (native-inputs
+     (list python-hatchling
+           python-hatch-vcs
+           python-assertpy
+           python-beautifulsoup4
+           python-pytest))
+    (propagated-inputs
+     (list python-jinja2
+           python-pytest-metadata))
+    (home-page "https://github.com/pytest-dev/pytest-html";)
+    (synopsis "Pytest plugin for generating HTML reports")
+    (description
+     "This packages provides a pytest plugin for generating HTML reports.")
+    (license license:mpl2.0)))
+
 (define-public python-pytest-metadata
   (package
     (name "python-pytest-metadata")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]