2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
2022-10-30 15:09:59 +00:00
|
|
|
, buildPythonPackage
|
2022-04-27 09:35:20 +00:00
|
|
|
, fetchFromGitHub
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
# build-system
|
2023-01-20 10:41:00 +00:00
|
|
|
, hatch-requirements-txt
|
|
|
|
, hatch-nodejs-version
|
|
|
|
, hatchling
|
2024-01-13 08:15:51 +00:00
|
|
|
, trove-classifiers
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
, babel
|
|
|
|
, colorama
|
2022-03-30 09:31:56 +00:00
|
|
|
, jinja2
|
|
|
|
, markdown
|
|
|
|
, mkdocs
|
|
|
|
, mkdocs-material-extensions
|
2024-01-13 08:15:51 +00:00
|
|
|
, paginate
|
2022-03-30 09:31:56 +00:00
|
|
|
, pygments
|
|
|
|
, pymdown-extensions
|
2022-04-27 09:35:20 +00:00
|
|
|
, pythonOlder
|
2023-03-15 16:39:30 +00:00
|
|
|
, regex
|
2023-01-20 10:41:00 +00:00
|
|
|
, requests
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
# optional-dependencies
|
|
|
|
, mkdocs-minify-plugin
|
|
|
|
, mkdocs-redirects
|
|
|
|
, mkdocs-git-revision-date-localized-plugin
|
|
|
|
, pillow
|
|
|
|
, cairosvg
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildPythonPackage rec {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "mkdocs-material";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "9.5.6";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "squidfunk";
|
2024-01-13 08:15:51 +00:00
|
|
|
repo = "mkdocs-material";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-t+kS/MZ6kfga+LPSBj0h+vkY/u/bd3iqRUyOHXfrwDU=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatch-requirements-txt
|
|
|
|
hatch-nodejs-version
|
|
|
|
hatchling
|
2024-01-13 08:15:51 +00:00
|
|
|
trove-classifiers
|
2023-01-20 10:41:00 +00:00
|
|
|
];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
propagatedBuildInputs = [
|
2024-01-13 08:15:51 +00:00
|
|
|
babel
|
2023-03-15 16:39:30 +00:00
|
|
|
colorama
|
2022-03-30 09:31:56 +00:00
|
|
|
jinja2
|
|
|
|
markdown
|
|
|
|
mkdocs
|
|
|
|
mkdocs-material-extensions
|
2024-01-13 08:15:51 +00:00
|
|
|
paginate
|
2022-03-30 09:31:56 +00:00
|
|
|
pygments
|
|
|
|
pymdown-extensions
|
2023-03-15 16:39:30 +00:00
|
|
|
regex
|
2023-01-20 10:41:00 +00:00
|
|
|
requests
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
recommended = [
|
|
|
|
mkdocs-minify-plugin
|
|
|
|
mkdocs-redirects
|
|
|
|
# TODO: mkdocs-rss-plugin
|
|
|
|
];
|
|
|
|
git = [
|
|
|
|
# TODO: gmkdocs-git-committers-plugin
|
|
|
|
mkdocs-git-revision-date-localized-plugin
|
|
|
|
];
|
|
|
|
imaging = [
|
|
|
|
cairosvg
|
|
|
|
pillow
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
# No tests for python
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"mkdocs"
|
|
|
|
];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-13 08:15:51 +00:00
|
|
|
changelog = "https://github.com/squidfunk/mkdocs-material/blob/${src.rev}/CHANGELOG";
|
2022-03-30 09:31:56 +00:00
|
|
|
description = "Material for mkdocs";
|
2024-01-13 08:15:51 +00:00
|
|
|
downloadPage = "https://github.com/squidfunk/mkdocs-material";
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://squidfunk.github.io/mkdocs-material/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dandellion ];
|
|
|
|
};
|
|
|
|
}
|