guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: python-mistletoe: Run tests.


From: guix-commits
Subject: 02/02: gnu: python-mistletoe: Run tests.
Date: Fri, 4 Feb 2022 08:48:38 -0500 (EST)

monego pushed a commit to branch master
in repository guix.

commit de38ccf2e0bb2fd21393925c296b65dca7499bd3
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Fri Feb 4 10:26:37 2022 -0300

    gnu: python-mistletoe: Run tests.
    
    * gnu/packages/markup.scm (python-mistletoe)[arguments]: Override the 'check
    phase.
---
 gnu/packages/markup.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/markup.scm b/gnu/packages/markup.scm
index 06849d05d9..ce131a5835 100644
--- a/gnu/packages/markup.scm
+++ b/gnu/packages/markup.scm
@@ -10,6 +10,7 @@
 ;;; Copyright © 2021 Zhu Zihao <all_but_last@163.com>
 ;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com>
 ;;; Copyright © 2022 jgart <jgart@dismail.de>
+;;; Copyright © 2022 Vinicius Monego <monego@posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -448,6 +449,13 @@ with a few extensions.")
        (sha256
         (base32 "0h8ydzxlfzmspiz8lcm13qp720kfsxiky0qqnc2mxf4qzm16m326"))))
     (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "python" "-m" "unittest" "discover" "test")))))))
     (home-page "https://github.com/miyuchina/mistletoe";)
     (synopsis "Extensible Markdown parser in pure Python")
     (description



reply via email to

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