1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
{
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,
}:
buildPythonPackage rec {
pname = "mkdocs-material";
version = "9.5.18";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "squidfunk";
repo = "mkdocs-material";
rev = "refs/tags/${version}";
hash = "sha256-5FCIDAWRY6YfZi4QbcEpJMFfbJ17vudxlUYx4czDxrY=";
};
nativeBuildInputs = [
hatch-requirements-txt
hatch-nodejs-version
hatchling
trove-classifiers
];
propagatedBuildInputs = [
babel
colorama
jinja2
markdown
mkdocs
mkdocs-material-extensions
paginate
pygments
pymdown-extensions
regex
requests
];
passthru.optional-dependencies = {
recommended = [
mkdocs-minify-plugin
mkdocs-redirects
mkdocs-rss-plugin
];
git = [
# TODO: gmkdocs-git-committers-plugin
mkdocs-git-revision-date-localized-plugin
];
imaging = [
cairosvg
pillow
];
};
# No tests for python
doCheck = false;
pythonImportsCheck = [ "mkdocs" ];
meta = with lib; {
changelog = "https://github.com/squidfunk/mkdocs-material/blob/${src.rev}/CHANGELOG";
description = "Material for mkdocs";
downloadPage = "https://github.com/squidfunk/mkdocs-material";
homepage = "https://squidfunk.github.io/mkdocs-material/";
license = licenses.mit;
maintainers = with maintainers; [ dandellion ];
};
}
|