15 buildPythonPackage rec {
16 pname = "plantuml-markdown";
18 format = "setuptools";
20 disabled = pythonOlder "3.7";
22 src = fetchFromGitHub {
25 rev = "refs/tags/${version}";
26 hash = "sha256-5K8NSxMCdAsOtV0egY8gMbHnHifvYNRHzafR0LAcm+Q=";
29 propagatedBuildInputs = [
36 # The package uses a custom script that downloads a certain version of plantuml for testing.
39 pythonImportsCheck = [ "plantuml_markdown" ];
41 passthru.tests.example-doc =
43 exampleDoc = writeText "plantuml-markdown-example-doc.md" ''
49 runCommand "plantuml-markdown-example-doc" { nativeBuildInputs = [ plantuml-markdown ]; } ''
50 markdown_py -x plantuml_markdown ${exampleDoc} > $out
52 ! grep -q "Error" $out
56 description = "PlantUML plugin for Python-Markdown";
58 This plugin implements a block extension which can be used to specify a PlantUML
59 diagram which will be converted into an image and inserted in the document.
61 homepage = "https://github.com/mikitex70/plantuml-markdown";
62 changelog = "https://github.com/mikitex70/plantuml-markdown/releases/tag/${version}";
63 license = licenses.bsd2;
64 maintainers = with maintainers; [ nikstur ];