1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 mkdocs,
7 gitMinimal,
8}:
9
10buildPythonPackage rec {
11 pname = "mkdocs-git-authors-plugin";
12 version = "0.10.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "timvink";
17 repo = "mkdocs-git-authors-plugin";
18 tag = "v${version}";
19 hash = "sha256-Uy1XgSJchA7hkc9i4hE8Ws4OWY5GRzvfnhKkZvxT2d0=";
20 };
21
22 postPatch = ''
23 substituteInPlace src/mkdocs_git_authors_plugin/git/command.py \
24 --replace-fail 'args = ["git"]' 'args = ["${gitMinimal}/bin/git"]'
25 '';
26
27 build-system = [
28 setuptools
29 ];
30
31 dependencies = [ mkdocs ];
32
33 pythonImportsCheck = [ "mkdocs_git_authors_plugin" ];
34
35 meta = {
36 description = "Lightweight MkDocs plugin to display git authors of a markdown page";
37 homepage = "https://github.com/timvink/mkdocs-git-authors-plugin";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ totoroot ];
40 };
41}