2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, callPackage
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
2022-03-30 09:31:56 +00:00
|
|
|
, jinja2
|
|
|
|
, markdown
|
|
|
|
, mkdocs
|
|
|
|
, mkdocs-material-extensions
|
|
|
|
, pygments
|
|
|
|
, pymdown-extensions
|
2022-04-27 09:35:20 +00:00
|
|
|
, pythonOlder
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "mkdocs-material";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "8.3.5";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "squidfunk";
|
|
|
|
repo = pname;
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-1fRNq2vOWTaUa8OZE1EkLH/2pt9vpUBkWXmro+aqwmA=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
jinja2
|
|
|
|
markdown
|
|
|
|
mkdocs
|
|
|
|
mkdocs-material-extensions
|
|
|
|
pygments
|
|
|
|
pymdown-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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; {
|
|
|
|
description = "Material for mkdocs";
|
|
|
|
homepage = "https://squidfunk.github.io/mkdocs-material/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dandellion ];
|
|
|
|
};
|
|
|
|
}
|