[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#48842] [PATCH 4/6] gnu: Add python-markdown-it-py.
From: |
Vinicius Monego |
Subject: |
[bug#48842] [PATCH 4/6] gnu: Add python-markdown-it-py. |
Date: |
Sat, 5 Jun 2021 01:46:53 +0000 |
* gnu/packages/python-xyz.scm (python-markdown-it-py): New variable.
---
gnu/packages/python-xyz.scm | 51 +++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 89717975ee..fd7b1dd5f1 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7099,6 +7099,57 @@ for the @code{linkify-it-py} project needs.")
"This is a Python port of @code{linkify-it}.")
(license license:expat)))
+(define-public python-markdown-it-py
+ (package
+ (name "python-markdown-it-py")
+ (version "1.1.0")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/executablebooks/markdown-it-py")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0h7rn3rcqfwmnqs97qczwkw9w5g4df8bgn6sw7k149svfqgrkf56"))))
+ (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-attrs" ,python-attrs)
+ ("python-typing-extensions"
+ ,python-typing-extensions)))
+ (native-inputs
+ `(("python-coverage" ,python-coverage)
+ ("python-linkify-it-py" ,python-linkify-it-py)
+ ("python-psutil" ,python-psutil)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-benchmark"
+ ,python-pytest-benchmark)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-pytest-regressions"
+ ,python-pytest-regressions)))
+ (home-page "https://github.com/executablebooks/markdown-it-py")
+ (synopsis "Python port of markdown-it")
+ (description
+ "This is a Python port of @code{markdown-it}, and some of its associated
+plugins. Features:
+
+@itemize
+@item Follows the CommonMark spec for baseline parsing.
+@item Configurable syntax: Add new rules and even replace existing ones.
+@item Pluggable: Adds syntax extensions to extend the parser.
+@item Safe by default.
+@end itemize")
+ (license license:expat)))
+
(define-public python-honcho
(package
(name "python-honcho")
--
2.31.1
- [bug#48842] [PATCH 0/6] gnu: Add python-myst-parser., Vinicius Monego, 2021/06/04
- [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir., Vinicius Monego, 2021/06/04
- [bug#48842] [PATCH 2/6] gnu: Add python-pytest-regressions., Vinicius Monego, 2021/06/04
- [bug#48842] [PATCH 3/6] gnu: Add python-linkify-it-py., Vinicius Monego, 2021/06/04
- [bug#48842] [PATCH 5/6] gnu: Add python-mdit-py-plugins., Vinicius Monego, 2021/06/04
- [bug#48842] [PATCH 4/6] gnu: Add python-markdown-it-py.,
Vinicius Monego <=
- [bug#48842] [PATCH 6/6] gnu: Add python-myst-parser., Vinicius Monego, 2021/06/04
- [bug#48842] [PATCH 1/6] gnu: Add python-pytest-datadir., Xinglu Chen, 2021/06/05
- [bug#48842] [PATCH v2 1/7] gnu: Add python-pytest-datadir., Vinicius Monego, 2021/06/07
- [bug#48842] [PATCH v2 2/7] gnu: Add python-pytest-regressions., Vinicius Monego, 2021/06/07
- [bug#48842] [PATCH v2 4/7] gnu: Add python-linkify-it-py., Vinicius Monego, 2021/06/07
- [bug#48842] [PATCH v2 7/7] gnu: Add python-myst-parser., Vinicius Monego, 2021/06/07
- [bug#48842] [PATCH v2 6/7] gnu: Add python-mdit-py-plugins., Vinicius Monego, 2021/06/07
- [bug#48842] [PATCH v2 5/7] gnu: Add python-markdown-it-py., Vinicius Monego, 2021/06/07
- [bug#48842] [PATCH v2 3/7] gnu: Add python-uc-micro-py., Vinicius Monego, 2021/06/07