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