Skip to content

Commit

Permalink
mkdocs-git-revision-date-localized-plugin: init at 1.3.0
Browse files Browse the repository at this point in the history
waiting for NixOS/nixpkgs#360035

Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Nov 29, 2024
1 parent 3e76952 commit 9e6183f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions pkgs/mkdocs-git-revision-date-localized-plugin/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
lib,
python3,
fetchFromGitHub,
}:

python3.pkgs.buildPythonPackage rec {
pname = "mkdocs-git-revision-date-localized-plugin";
version = "1.3.0";
pyproject = true;

src = fetchFromGitHub {
owner = "timvink";
repo = "mkdocs-git-revision-date-localized-plugin";
rev = "refs/tags/v${version}";
hash = "sha256-Z0a/V8wyo15E7bTumLRM+0QxMGXlxVc1Sx9uXlDbg+8=";
};

build-system = with python3.pkgs; [ setuptools ];

nativeBuildInputs = [ python3.pkgs.setuptools-scm ];

propagatedBuildInputs = with python3.pkgs; [
babel
gitpython
mkdocs
pytz
];

nativeCheckInputs = [ python3.pkgs.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 ];
};
}

0 comments on commit 9e6183f

Please sign in to comment.