1{ lib, buildPythonPackage, fetchFromGitHub
2, beautifulsoup4
3, jsbeautifier
4, mkdocs
5, mkdocs-material
6, pymdown-extensions
7, pyyaml
8, requests
9}:
10
11buildPythonPackage rec {
12 pname = "mkdocs-mermaid2-plugin";
13 version = "0.6.0";
14
15 src = fetchFromGitHub {
16 owner = "fralau";
17 repo = "mkdocs-mermaid2-plugin";
18 rev = "v${version}";
19 hash = "sha256-Oe6wkVrsB0NWF+HHeifrEogjxdGPINRDJGkh9p+GoHs=";
20 };
21
22 propagatedBuildInputs = [
23 beautifulsoup4
24 jsbeautifier
25 mkdocs
26 mkdocs-material
27 pymdown-extensions
28 pyyaml
29 requests
30 ];
31
32 # non-traditional python tests (e.g. nodejs based tests)
33 doCheck = false;
34
35 pythonImportsCheck = [ "mermaid2" ];
36
37 meta = with lib; {
38 description = "A MkDocs plugin for including mermaid graphs in markdown sources";
39 homepage = "https://github.com/fralau/mkdocs-mermaid2-plugin";
40 license = licenses.mit;
41 maintainers = with maintainers; [ jonringer ];
42 };
43}