From 8eb54fdd4b09270b733f69292180befffde903bb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 10 Oct 2025 09:33:27 +0200 Subject: [PATCH] python313Packages.mkdocs-drawio-exporter: modernize --- .../mkdocs-drawio-exporter/default.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/mkdocs-drawio-exporter/default.nix b/pkgs/development/python-modules/mkdocs-drawio-exporter/default.nix index d63cfef83694..7d3146f9288d 100644 --- a/pkgs/development/python-modules/mkdocs-drawio-exporter/default.nix +++ b/pkgs/development/python-modules/mkdocs-drawio-exporter/default.nix @@ -1,13 +1,13 @@ { + lib, buildPythonPackage, drawio-headless, fetchPypi, - isPy3k, - lib, + livereload, mkdocs, poetry-core, - livereload, tornado, + unittestCheckHook, }: buildPythonPackage rec { @@ -15,8 +15,6 @@ buildPythonPackage rec { version = "0.10.2"; pyproject = true; - disabled = !isPy3k; - src = fetchPypi { pname = "mkdocs_drawio_exporter"; inherit version; @@ -32,15 +30,18 @@ buildPythonPackage rec { tornado ]; + nativeCheckInputs = [ unittestCheckHook ]; + pythonImportsCheck = [ "mkdocs_drawio_exporter" ]; 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 ]; + 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 ]; }; }