14 buildPythonPackage rec {
15 pname = "plantuml-markdown";
17 format = "setuptools";
19 disabled = pythonOlder "3.7";
21 src = fetchFromGitHub {
24 rev = "refs/tags/${version}";
25 hash = "sha256-k4Xs1w/26QAfNdJY6P1gpJkBzg/tWi7vDFKZi7naVHo=";
28 propagatedBuildInputs = [
35 # The package uses a custom script that downloads a certain version of plantuml for testing.
38 pythonImportsCheck = [
42 passthru.tests.example-doc =
44 exampleDoc = writeText "plantuml-markdown-example-doc.md" ''
50 runCommand "plantuml-markdown-example-doc"
52 nativeBuildInputs = [ plantuml-markdown ];
54 markdown_py -x plantuml_markdown ${exampleDoc} > $out
56 ! grep -q "Error" $out
60 description = "PlantUML plugin for Python-Markdown";
62 This plugin implements a block extension which can be used to specify a PlantUML
63 diagram which will be converted into an image and inserted in the document.
65 homepage = "https://github.com/mikitex70/plantuml-markdown";
66 changelog = "https://github.com/mikitex70/plantuml-markdown/releases/tag/${version}";
67 license = licenses.bsd2;
68 maintainers = with maintainers; [ nikstur ];