2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
callPackage,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
mkdocs,
|
|
|
|
mkdocs-macros,
|
|
|
|
mkdocs-material,
|
|
|
|
jinja2,
|
|
|
|
python-dateutil,
|
|
|
|
termcolor,
|
|
|
|
pyyaml,
|
|
|
|
runCommand,
|
|
|
|
setuptools,
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mkdocs-macros-plugin";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.0.5";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-/jSNdfAckR82K22ZjFez2FtQWHbd5p25JPLFEsOVwyg=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
jinja2
|
|
|
|
termcolor
|
2022-07-14 12:49:19 +00:00
|
|
|
python-dateutil
|
2022-06-16 17:23:12 +00:00
|
|
|
pyyaml
|
|
|
|
mkdocs
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests.example-doc = callPackage ./tests.nix { };
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "mkdocs_macros" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/fralau/mkdocs_macros_plugin";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Create richer and more beautiful pages in MkDocs, by using variables and calls to macros in the markdown code";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tljuniper ];
|
|
|
|
};
|
|
|
|
}
|