48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
drawio-headless,
|
|
fetchPypi,
|
|
livereload,
|
|
mkdocs,
|
|
poetry-core,
|
|
tornado,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mkdocs-drawio-exporter";
|
|
version = "0.10.2";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "mkdocs_drawio_exporter";
|
|
inherit version;
|
|
hash = "sha256-LbHnV6WLIgab6CrripZnnqc5kkVyF4E+Ls00h1bXjHc=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
mkdocs
|
|
drawio-headless
|
|
livereload
|
|
tornado
|
|
];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "mkdocs_drawio_exporter" ];
|
|
|
|
meta = with lib; {
|
|
description = "Module for exporting Draw.io diagrams";
|
|
longDescription = ''
|
|
Exports your Draw.io diagrams at build time for easier embedding into your documentation.
|
|
'';
|
|
homepage = "https://github.com/LukeCarrier/mkdocs-drawio-exporter/";
|
|
changelog = "https://github.com/LukeCarrier/mkdocs-drawio-exporter/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ snpschaaf ];
|
|
};
|
|
}
|