1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 babel,
7 gitpython,
8 mkdocs,
9 pytz,
10 pytestCheckHook,
11 git,
12}:
13
14buildPythonPackage rec {
15 pname = "mkdocs-git-revision-date-localized-plugin";
16 version = "1.2.5";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchFromGitHub {
22 owner = "timvink";
23 repo = "mkdocs-git-revision-date-localized-plugin";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-cezL65Wsdaa9W4dGLgTz1x3UFrDRDJaGuttr58CBcuw=";
26 };
27
28 propagatedBuildInputs = [
29 babel
30 gitpython
31 mkdocs
32 pytz
33 ];
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 disabledTestPaths = [ "tests/test_builds.py" ];
38
39 pythonImportsCheck = [ "mkdocs_git_revision_date_localized_plugin" ];
40
41 meta = with lib; {
42 description = "MkDocs plugin that enables displaying the date of the last git modification of a page";
43 homepage = "https://github.com/timvink/mkdocs-git-revision-date-localized-plugin";
44 changelog = "https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/releases/tag/v${version}";
45 license = licenses.mit;
46 maintainers = with maintainers; [ totoroot ];
47 };
48}