1{ buildPythonPackage
2, fetchzip
3, isPy3k
4, lib
5, mkdocs
6}:
7
8buildPythonPackage rec {
9 pname = "mkdocs-gitlab-plugin";
10 version = "0.1.4";
11
12 disabled = !isPy3k;
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 propagatedBuildInputs = [ mkdocs ];
22
23 pythonImportsCheck = [ "mkdocs_gitlab_plugin" ];
24
25 meta = with lib; {
26 description = "MkDocs plugin to transform strings such as #1234, %56, or !789 into links to a Gitlab repository.";
27 homepage = "https://gitlab.inria.fr/vidjil/mkdocs-gitlab-plugin";
28 license = licenses.mit;
29 maintainers = with maintainers; [ snpschaaf ];
30 longDescription = ''
31 Plugin for MkDocs.
32 Transform handles such as #1234, %56, !789, &12 or $34 into links to a gitlab repository,
33 given by the gitlab_url configuration option.
34 Before the #/%/!/&/$ is needed either a space, a '(', or a '['.
35 '';
36 };
37}