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