diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-04-19 17:14:06 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-05-12 12:46:03 -0400 |
commit | 4fe4943ba66bd4c9ed5f3c0e30f4ae639bcea105 (patch) | |
tree | 85129a50dbfd2aab3e482161027251ec0f17b0ca /gnu | |
parent | c5078029031350bb22a91db8c3be7c08461d264a (diff) | |
download | guix-4fe4943ba66bd4c9ed5f3c0e30f4ae639bcea105.tar.gz |
gnu: python-mkdocs: Update to 1.3.0.
* gnu/packages/python-xyz.scm (python-mkdocs): Update to 1.3.0. [source]: Use git. [phases]{check}: New override. [propagated-inputs]: Remove python-livereload, python-lunr and python-tornado. Add python-babel, python-ghp-import, python-importlib-metadata, python-markupsafe, python-mdx-gh-links, python-mergedeep, python-packaging, python-pyyaml-env-tag and python-watchdog.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/python-xyz.scm | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 4258b06600..09b55e7362 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -650,14 +650,18 @@ HTML") (define-public python-mkdocs (package (name "python-mkdocs") - (version "1.1.2") + (version "1.3.0") (source (origin - (method url-fetch) - (uri - (pypi-uri "mkdocs" version)) + ;; The tests suite appears to be incomplete in the PyPI archive. + (method git-fetch) + (uri (git-reference + (url "https://github.com/mkdocs/mkdocs") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "0fgv5zawpyyv0vd4j5y8m4h058lh9jkwfcm0xy4pg7dr09a1xdph")))) + (base32 + "1n5rdllrxvhnxmdrddf55p3s86dakx0rq2gg6bj6pr6jg2pn932b")))) (build-system python-build-system) (arguments `(#:phases @@ -667,15 +671,27 @@ HTML") (add-after 'unpack 'patch-requirements (lambda _ (substitute* "setup.py" - (("==") ">="))))))) + (("==") ">=")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "-m" "unittest" + "discover" "-p" "*tests.py" "mkdocs" + "--top-level-directory" "."))))))) (propagated-inputs - (list python-click + (list python-babel + python-click + python-ghp-import + python-importlib-metadata python-jinja2 - python-livereload - python-lunr python-markdown + python-markupsafe + python-mdx-gh-links + python-mergedeep + python-packaging python-pyyaml - python-tornado)) + python-pyyaml-env-tag + python-watchdog)) (home-page "https://www.mkdocs.org") (synopsis "Project documentation with Markdown") (description "MkDocs is a static site generator geared towards building |