1{
2 lib,
3 buildPythonPackage,
4 fetchzip,
5 mkdocs,
6 setuptools,
7}:
8
9buildPythonPackage {
10 pname = "mkdocs-gitlab-plugin";
11 version = "0.1.4";
12 pyproject = true;
13
14 src = fetchzip {
15 url = "https://gitlab.inria.fr/vidjil/mkdocs-gitlab-plugin/-/archive/fb87fbfd404839e661a799c540664b1103096a5f/mkdocs-gitlab-plugin-fb87fbfd404839e661a799c540664b1103096a5f.tar.gz";
16 hash = "sha256-z+U0PRwymDDXVNM7a2Yl4pNNVBxpx/BhJnlx6kgyvww=";
17 };
18
19 patches = [ ./mkdocs-gitlab-plugin.diff ];
20
21 build-system = [ setuptools ];
22
23 dependencies = [ mkdocs ];
24
25 # Module has no tests
26 doCheck = false;
27
28 pythonImportsCheck = [ "mkdocs_gitlab_plugin" ];
29
30 meta = with lib; {
31 description = "MkDocs plugin to transform strings into links to a Gitlab repository";
32 longDescription = ''
33 Transform handles such as #1234, %56, !789, &12 or $34 into links to a gitlab repository,
34 given by the gitlab_url configuration option.
35 Before the #/%/!/&/$ is needed either a space, a '(', or a '['.
36 '';
37 homepage = "https://gitlab.inria.fr/vidjil/mkdocs-gitlab-plugin";
38 license = licenses.mit;
39 maintainers = with maintainers; [ snpschaaf ];
40 };
41}