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 ]; }; } diff --git a/pkgs/development/python-modules/mkdocs-gitlab-plugin/default.nix b/pkgs/development/python-modules/mkdocs-gitlab-plugin/default.nix index 39d0bd890e93..b5c9c683e78f 100644 --- a/pkgs/development/python-modules/mkdocs-gitlab-plugin/default.nix +++ b/pkgs/development/python-modules/mkdocs-gitlab-plugin/default.nix @@ -1,17 +1,15 @@ { + lib, buildPythonPackage, fetchzip, - isPy3k, - lib, mkdocs, + setuptools, }: buildPythonPackage { pname = "mkdocs-gitlab-plugin"; version = "0.1.4"; - format = "setuptools"; - - disabled = !isPy3k; + pyproject = true; src = fetchzip { url = "https://gitlab.inria.fr/vidjil/mkdocs-gitlab-plugin/-/archive/fb87fbfd404839e661a799c540664b1103096a5f/mkdocs-gitlab-plugin-fb87fbfd404839e661a799c540664b1103096a5f.tar.gz"; @@ -20,20 +18,24 @@ buildPythonPackage { patches = [ ./mkdocs-gitlab-plugin.diff ]; - propagatedBuildInputs = [ mkdocs ]; + build-system = [ setuptools ]; + + dependencies = [ mkdocs ]; + + # Module has no tests + doCheck = false; pythonImportsCheck = [ "mkdocs_gitlab_plugin" ]; meta = with lib; { - description = "MkDocs plugin to transform strings such as #1234, %56, or !789 into links to a Gitlab repository"; - homepage = "https://gitlab.inria.fr/vidjil/mkdocs-gitlab-plugin"; - license = licenses.mit; - maintainers = with maintainers; [ snpschaaf ]; + description = "MkDocs plugin to transform strings into links to a Gitlab repository"; longDescription = '' - Plugin for MkDocs. Transform handles such as #1234, %56, !789, &12 or $34 into links to a gitlab repository, given by the gitlab_url configuration option. Before the #/%/!/&/$ is needed either a space, a '(', or a '['. ''; + homepage = "https://gitlab.inria.fr/vidjil/mkdocs-gitlab-plugin"; + license = licenses.mit; + maintainers = with maintainers; [ snpschaaf ]; }; }