2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
beautifulsoup4,
|
|
|
|
jsbeautifier,
|
|
|
|
mkdocs,
|
|
|
|
mkdocs-material,
|
|
|
|
pymdown-extensions,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
|
|
|
pythonOlder,
|
2023-02-02 18:25:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mkdocs-mermaid2-plugin";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.1.0";
|
2023-08-22 20:05:09 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fralau";
|
|
|
|
repo = "mkdocs-mermaid2-plugin";
|
2023-08-22 20:05:09 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-9vYLkGUnL+rnmZntcgFzOvXQdf6angb9DRsmrBjnPUY=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
jsbeautifier
|
|
|
|
mkdocs
|
|
|
|
mkdocs-material
|
|
|
|
pymdown-extensions
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
# non-traditional python tests (e.g. nodejs based tests)
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "mermaid2" ];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "MkDocs plugin for including mermaid graphs in markdown sources";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://github.com/fralau/mkdocs-mermaid2-plugin";
|
2023-08-22 20:05:09 +00:00
|
|
|
changelog = "https://github.com/fralau/mkdocs-mermaid2-plugin/blob/v${version}/CHANGELOG.md";
|
2023-02-02 18:25:31 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
};
|
|
|
|
}
|