diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index a81b268e462f3..1c5713b3d54b3 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -13756,6 +13756,17 @@ githubId = 24735185; name = "Mahmoud Ayman"; }; + mahtaran = { + email = "luka.leer@gmail.com"; + github = "mahtaran"; + githubId = 22727323; + name = "Luka Leer"; + keys = [ + { + fingerprint = "C7FF B72E 0527 423A D470 E132 AA82 C4EB CB16 82E0"; + } + ]; + }; majesticmullet = { email = "hoccthomas@gmail.com.au"; github = "MajesticMullet"; diff --git a/pkgs/development/python-modules/mkdocs-git-committers-plugin-2/default.nix b/pkgs/development/python-modules/mkdocs-git-committers-plugin-2/default.nix new file mode 100644 index 0000000000000..6ff5a1c511014 --- /dev/null +++ b/pkgs/development/python-modules/mkdocs-git-committers-plugin-2/default.nix @@ -0,0 +1,52 @@ +{ + # Evaluation + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + + # Build + setuptools, + + # Dependencies + gitpython, + mkdocs, + requests, +}: + +buildPythonPackage rec { + pname = "mkdocs-git-committers-plugin-2"; + version = "2.4.1"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "ojacques"; + repo = "mkdocs-git-committers-plugin-2"; + rev = "refs/tags/${version}"; + hash = "sha256-hKt0K5gOkdUDwTlyMTwodl4gD1RD+s+CM+zEpngSnlc="; + }; + + build-system = [ + setuptools + ]; + + dependencies = [ + gitpython + mkdocs + requests + ]; + + # Upstream has no tests + doCheck = false; + pythonImportsCheck = [ "mkdocs_git_committers_plugin_2" ]; + + meta = { + description = "MkDocs plugin for displaying a list of contributors on each page"; + homepage = "https://github.com/ojacques/mkdocs-git-committers-plugin-2"; + changelog = "https://github.com/ojacques/mkdocs-git-committers-plugin-2/releases/tag/${version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ mahtaran ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 759ff0e5e2e95..959365d03a301 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8254,6 +8254,8 @@ self: super: with self; { mkdocs-git-authors-plugin = callPackage ../development/python-modules/mkdocs-git-authors-plugin { }; + mkdocs-git-committers-plugin-2 = callPackage ../development/python-modules/mkdocs-git-committers-plugin-2 { }; + mkdocs-git-revision-date-localized-plugin = callPackage ../development/python-modules/mkdocs-git-revision-date-localized-plugin { }; mkdocs-gitlab = callPackage ../development/python-modules/mkdocs-gitlab-plugin { };