Subject: [bug#50033] [PATCH 2/4] gnu: python-bleach: Enable tests.

From: Vinicius Monego <[email-masked]>
Date: Thu, 12 Aug 2021 23:58:05 +0000

* gnu/packages/python-xyz.scm (python-bleach)[arguments]: Override 'check
phase.
---
 gnu/packages/python-xyz.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 26fee98644..edfc945369 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11053,6 +11053,14 @@ Jupyter Notebook format and Python APIs for working with notebooks.")
        (sha256
         (base32 "0jqa8f1ni10cyf4h7sjpf8mbqlcbkyvmsnli77qrxdcxvc7m4k1w"))))
     (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               (invoke "python" "-m" "pytest")))))))
     (propagated-inputs
      `(("python-packaging" ,python-packaging)
        ("python-six" ,python-six)
-- 
2.30.2