2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchzip,
|
|
|
|
isPy3k,
|
|
|
|
lib,
|
|
|
|
mkdocs,
|
2022-06-26 10:26:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mkdocs-gitlab-plugin";
|
|
|
|
version = "0.1.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://gitlab.inria.fr/vidjil/mkdocs-gitlab-plugin/-/archive/fb87fbfd404839e661a799c540664b1103096a5f/mkdocs-gitlab-plugin-fb87fbfd404839e661a799c540664b1103096a5f.tar.gz";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-z+U0PRwymDDXVNM7a2Yl4pNNVBxpx/BhJnlx6kgyvww=";
|
2022-06-26 10:26:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./mkdocs-gitlab-plugin.diff ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ mkdocs ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
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 '['.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|