[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#48842] [PATCH v3 4/5] gnu: Add python-mdit-py-plugins.
From: |
Vinicius Monego |
Subject: |
[bug#48842] [PATCH v3 4/5] gnu: Add python-mdit-py-plugins. |
Date: |
Wed, 15 Sep 2021 16:41:29 +0000 |
* gnu/packages/python-xyz.scm (python-mdit-py-plugins): New variable.
---
Rebasing.
gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 11e766ab35..fa00277500 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7380,6 +7380,43 @@ parser in JavaScript), and some of its associated
plugins. Features:
@end itemize")
(license license:expat)))
+(define-public python-mdit-py-plugins
+ (package
+ (name "python-mdit-py-plugins")
+ (version "0.2.8")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/executablebooks/mdit-py-plugins")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0pq7cgzwb1gcbsdpdp51r3l6mnjdxc4hbfmwk6dy30pfa1lj6x1i"))))
+ (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-markdown-it-py" ,python-markdown-it-py)))
+ (native-inputs
+ `(("python-coverage" ,python-coverage)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-pytest-regressions"
+ ,python-pytest-regressions)))
+ (home-page "https://github.com/executablebooks/mdit-py-plugins")
+ (synopsis "Collection of plugins for @code{python-markdown-it-py}")
+ (description "This package provides a collection of plugins for
+@code{python-markdown-it-py}.")
+ (license license:expat)))
+
(define-public python-honcho
(package
(name "python-honcho")
--
2.30.2