python313Packages.mkdocs-drawio-exporter: modernize, python313Packages.mkdocs-gitlab: modernize (#450593)

This commit is contained in:
Fabian Affolter
2025-10-10 08:14:17 +00:00
committed by GitHub
2 changed files with 23 additions and 20 deletions
@@ -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 ];
};
}
@@ -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 ];
};
}