about summary refs log tree commit diff
path: root/pkgs/development/python-modules/mkdocs-drawio-exporter/default.nix
blob: 02064d5f4e0b392eac1b115d94c7948a55f4e608 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  buildPythonPackage,
  drawio-headless,
  fetchPypi,
  isPy3k,
  lib,
  mkdocs,
}:

buildPythonPackage rec {
  pname = "mkdocs-drawio-exporter";
  version = "0.8.0";
  format = "setuptools";

  disabled = !isPy3k;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-9cvA186FS6bHmpOrv4OfPZ5kRfgfafBfaWxgWJIlwwA=";
  };

  propagatedBuildInputs = [
    mkdocs
    drawio-headless
  ];

  pythonImportsCheck = [ "mkdocsdrawioexporter" ];

  meta = with lib; {
    description = "Exports your Draw.io diagrams at build time for easier embedding into your documentation.";
    homepage = "https://github.com/LukeCarrier/mkdocs-drawio-exporter/";
    license = licenses.mit;
    maintainers = with maintainers; [ snpschaaf ];
    longDescription = ''
      Exports your Draw.io diagrams at build time for easier embedding into your documentation.
    '';
  };
}