aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorRaghav Gururajan <rg@raghavgururajan.name>2021-04-28 16:39:55 -0400
committerRaghav Gururajan <rg@raghavgururajan.name>2021-05-02 07:45:27 -0400
commit255ff5ee289d62dd91dec7eaab2d93ad540caeff (patch)
treeeae4dbf4b074255259454d35833cf6c4e38036e2 /gnu/packages/python-xyz.scm
parent5b8e9eec080e8e04f6b44f0776d9b92afede26b6 (diff)
downloadguix-255ff5ee289d62dd91dec7eaab2d93ad540caeff.tar.gz
guix-255ff5ee289d62dd91dec7eaab2d93ad540caeff.zip
gnu: Add python-mkdocs-material.
* gnu/packages/python-xyz.scm (python-mkdocs-material): New variable.
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5e6579a5ae..ab12c3b69c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -349,6 +349,40 @@ configured with a single YAML configuration file.")
Markdown. All extensions are found under the module namespace of pymdownx.")
(license license:expat)))
+(define-public python-mkdocs-material
+ (package
+ (name "python-mkdocs-material")
+ (version "7.1.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (pypi-uri "mkdocs-material" version))
+ (sha256
+ (base32 "0ci9xiasq9nfn09v11m7p49vzazdbgslw7rpzjd6y3hsmn9vljz3"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ ;; Requirement mkdocs-material-extensions
+ ;; in-turn requires mkdocs-material. This causes
+ ;; circular dependency, so we remove this requirement.
+ (add-after 'unpack 'patch-requirements
+ (lambda _
+ (substitute* "requirements.txt"
+ (("mkdocs-material-extensions.*$") "")))))))
+ (propagated-inputs
+ `(("python-markdown" ,python-markdown)
+ ("python-mkdocs" ,python-mkdocs)
+ ("python-pygments" ,python-pygments)
+ ("python-pymdown-extensions"
+ ,python-pymdown-extensions)))
+ (home-page "https://squidfunk.github.io/mkdocs-material/")
+ (synopsis "Material Design theme for MkDocs")
+ (description "This package provides a theme plugin for the static site
+generator MkDocs.")
+ (license license:expat)))
+
(define-public python-slixmpp
(package
(name "python-slixmpp")