gnu: python-mistletoe: Update to 1.3.0.

* gnu/packages/markup.scm (python-mistletoe): Update to 1.3.0.
[build-system]: Use pyproject-build-system.
[arguments]: Do not override the check phase, skip one test in #:test-flags.
[native-inputs]: Add python-parameterized, python-pytest.

Change-Id: If25e3cbe19d8936d150c830f1b8f4ce8f8cb5692
This commit is contained in:
Vinicius Monego 2024-03-24 09:24:29 -03:00
parent 76ed1e886e
commit 43ed834127
No known key found for this signature in database
GPG key ID: 637B0B138065B68A

View file

@ -10,7 +10,7 @@
;;; Copyright © 2021 Zhu Zihao <all_but_last@163.com> ;;; Copyright © 2021 Zhu Zihao <all_but_last@163.com>
;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com> ;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com>
;;; Copyright © 2022 jgart <jgart@dismail.de> ;;; Copyright © 2022 jgart <jgart@dismail.de>
;;; Copyright © 2022 Vinicius Monego <monego@posteo.net> ;;; Copyright © 2022, 2024 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
@ -39,6 +39,7 @@ (define-module (gnu packages markup)
#:use-module (guix build-system cmake) #:use-module (guix build-system cmake)
#:use-module (guix build-system perl) #:use-module (guix build-system perl)
#:use-module (guix build-system python) #:use-module (guix build-system python)
#:use-module (guix build-system pyproject)
#:use-module (guix utils) #:use-module (guix utils)
#:use-module (guix gexp) #:use-module (guix gexp)
#:use-module (gnu packages) #:use-module (gnu packages)
@ -475,21 +476,18 @@ (define-public md4c
(define-public python-mistletoe (define-public python-mistletoe
(package (package
(name "python-mistletoe") (name "python-mistletoe")
(version "0.8.1") (version "1.3.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "mistletoe" version)) (uri (pypi-uri "mistletoe" version))
(sha256 (sha256
(base32 "0h8ydzxlfzmspiz8lcm13qp720kfsxiky0qqnc2mxf4qzm16m326")))) (base32 "1sfv79fway4iya9i3rmz1bkj12lhzgazd4n7kv8phi4vvn57h3mx"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases ;; FileNotFoundError (not distributed in PyPI).
(modify-phases %standard-phases (list #:test-flags #~(list "-k" "not test_main")))
(replace 'check (native-inputs (list python-parameterized python-pytest))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "unittest" "discover" "test")))))))
(home-page "https://github.com/miyuchina/mistletoe") (home-page "https://github.com/miyuchina/mistletoe")
(synopsis "Extensible Markdown parser in pure Python") (synopsis "Extensible Markdown parser in pure Python")
(description (description