guix-patches
[Top][All Lists]
Advanced

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

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


From: Vinicius Monego
Subject: [bug#50033] [PATCH 2/4] gnu: python-bleach: Enable tests.
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






reply via email to

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