python3Packages.mkdocs-git-revision-date-localized-plugin: init at 1.2.0

This commit is contained in:
Matthias Thym 2023-07-28 11:09:37 +02:00
parent 7c48fc21a3
commit 821a77962d
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, gitpython
, mkdocs
, pytz
, pytestCheckHook
, git
}:
buildPythonPackage rec {
pname = "mkdocs-git-revision-date-localized-plugin";
version = "1.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "timvink";
repo = "mkdocs-git-revision-date-localized-plugin";
rev = "v${version}" ;
hash = "sha256-l7NUmsdd1FHkbdqtRcMQBfplZJgLCXrN+QuYaQLpz0k=";
};
propagatedBuildInputs = [
gitpython
mkdocs
pytz
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
"tests/test_builds.py"
];
pythonImportsCheck = [ "mkdocs_git_revision_date_localized_plugin" ];
meta = with lib; {
description = "MkDocs plugin that enables displaying the date of the last git modification of a page";
homepage = "https://github.com/timvink/mkdocs-git-revision-date-localized-plugin";
changelog = "https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ totoroot ];
};
}

View File

@ -6541,6 +6541,7 @@ self: super: with self; {
mkdocs-jupyter = callPackage ../development/python-modules/mkdocs-jupyter { };
mkdocs-gitlab = callPackage ../development/python-modules/mkdocs-gitlab-plugin { };
mkdocs-git-authors-plugin = callPackage ../development/python-modules/mkdocs-git-authors-plugin { };
mkdocs-git-revision-date-localized-plugin = callPackage ../development/python-modules/mkdocs-git-revision-date-localized-plugin { };
mkdocs-linkcheck = callPackage ../development/python-modules/mkdocs-linkcheck { };
mkdocs-macros = callPackage ../development/python-modules/mkdocs-macros { };
mkdocs-material = callPackage ../development/python-modules/mkdocs-material { };