2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
babel,
|
|
|
|
gitpython,
|
|
|
|
mkdocs,
|
|
|
|
pytz,
|
|
|
|
pytestCheckHook,
|
|
|
|
git,
|
2023-08-10 07:59:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mkdocs-git-revision-date-localized-plugin";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.2.6";
|
2023-08-10 07:59:29 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "timvink";
|
|
|
|
repo = "mkdocs-git-revision-date-localized-plugin";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-1H8K9vXgxYQlEmcXKwZQbJCLu4TRyuqffUI+Gm3ECrE=";
|
2023-08-10 07:59:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2024-02-29 20:09:43 +00:00
|
|
|
babel
|
2023-08-10 07:59:29 +00:00
|
|
|
gitpython
|
|
|
|
mkdocs
|
|
|
|
pytz
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabledTestPaths = [ "tests/test_builds.py" ];
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|