From 821a77962d870e633bf9a3096bcc9aae4c97a220 Mon Sep 17 00:00:00 2001 From: Matthias Thym Date: Fri, 28 Jul 2023 11:09:37 +0200 Subject: [PATCH] python3Packages.mkdocs-git-revision-date-localized-plugin: init at 1.2.0 --- .../default.nix | 47 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 1 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/mkdocs-git-revision-date-localized-plugin/default.nix diff --git a/pkgs/development/python-modules/mkdocs-git-revision-date-localized-plugin/default.nix b/pkgs/development/python-modules/mkdocs-git-revision-date-localized-plugin/default.nix new file mode 100644 index 000000000000..1bc335fdbace --- /dev/null +++ b/pkgs/development/python-modules/mkdocs-git-revision-date-localized-plugin/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b171e8e9ba75..fde8e684094c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };