2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
babel,
|
|
|
|
buildPythonPackage,
|
|
|
|
cairosvg,
|
|
|
|
colorama,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hatch-nodejs-version,
|
|
|
|
hatch-requirements-txt,
|
|
|
|
hatchling,
|
|
|
|
jinja2,
|
|
|
|
markdown,
|
|
|
|
mkdocs,
|
|
|
|
mkdocs-git-revision-date-localized-plugin,
|
|
|
|
mkdocs-material-extensions,
|
|
|
|
mkdocs-minify-plugin,
|
|
|
|
mkdocs-redirects,
|
|
|
|
mkdocs-rss-plugin,
|
|
|
|
paginate,
|
|
|
|
pillow,
|
|
|
|
pygments,
|
|
|
|
pymdown-extensions,
|
|
|
|
pythonOlder,
|
|
|
|
regex,
|
|
|
|
requests,
|
|
|
|
trove-classifiers,
|
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-07-27 06:49:29 +00:00
|
|
|
version = "9.5.29";
|
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-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-ebn19oD1Q+HYo9tksiDX1FlKKaB4U/bN51JCHXxSHx8=";
|
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
|
2024-04-21 15:54:59 +00:00
|
|
|
mkdocs-rss-plugin
|
2024-01-13 08:15:51 +00:00
|
|
|
];
|
|
|
|
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;
|
|
|
|
|
2024-04-21 15:54:59 +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 ];
|
|
|
|
};
|
|
|
|
}
|