Merge pull request #242851 from totoroot/init/pythonPackages.mkdocs-git-revision-date-localized

python3Packages.mkdocs-git-revision-date-localized-plugin: init at 1.2.0
This commit is contained in:
OTABI Tomoya 2023-08-08 17:52:29 +09:00 committed by GitHub
commit 4411bd4ee5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -6555,6 +6555,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 { };