2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, callPackage
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, mkdocs
|
|
|
|
, mkdocs-macros
|
|
|
|
, mkdocs-material
|
|
|
|
, jinja2
|
2022-07-14 12:49:19 +00:00
|
|
|
, python-dateutil
|
2022-06-16 17:23:12 +00:00
|
|
|
, termcolor
|
|
|
|
, pyyaml
|
|
|
|
, runCommand
|
|
|
|
, setuptools
|
|
|
|
}:
|
|
|
|
|
|
|
|
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-01-25 14:12:00 +00:00
|
|
|
sha256 = "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";
|
|
|
|
description = "Create richer and more beautiful pages in MkDocs, by using variables and calls to macros in the markdown code.";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tljuniper ];
|
|
|
|
};
|
|
|
|
}
|