44 lines
881 B
Nix
44 lines
881 B
Nix
|
{ lib
|
||
|
, callPackage
|
||
|
, buildPythonPackage
|
||
|
, fetchPypi
|
||
|
, mkdocs
|
||
|
, mkdocs-macros
|
||
|
, mkdocs-material
|
||
|
, jinja2
|
||
|
, dateutil
|
||
|
, termcolor
|
||
|
, pyyaml
|
||
|
, runCommand
|
||
|
, setuptools
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "mkdocs-macros-plugin";
|
||
|
version = "0.7.0";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
inherit pname version;
|
||
|
sha256 = "sha256:0206cm0153vzp10c8a15bi2znisq5pv59zi9vrcm74pnpk5f2r4y";
|
||
|
};
|
||
|
|
||
|
propagatedBuildInputs = [
|
||
|
jinja2
|
||
|
dateutil
|
||
|
termcolor
|
||
|
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 ];
|
||
|
};
|
||
|
}
|