mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03:00
54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
setuptools,
|
|
setuptools-scm,
|
|
babel,
|
|
gitpython,
|
|
mkdocs,
|
|
pytz,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mkdocs-git-revision-date-localized-plugin";
|
|
version = "1.3.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "timvink";
|
|
repo = "mkdocs-git-revision-date-localized-plugin";
|
|
tag = "v${version}";
|
|
hash = "sha256-Z0a/V8wyo15E7bTumLRM+0QxMGXlxVc1Sx9uXlDbg+8=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
babel
|
|
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/${src.tag}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ totoroot ];
|
|
};
|
|
}
|