From de38ccf2e0bb2fd21393925c296b65dca7499bd3 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Fri, 4 Feb 2022 10:26:37 -0300 Subject: 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(+) (limited to 'gnu/packages/markup.scm') 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 ;;; Copyright © 2021 Petr Hodina ;;; Copyright © 2022 jgart +;;; Copyright © 2022 Vinicius Monego ;;; ;;; 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 -- cgit 1.4.1