about summary refs log tree commit diff
path: root/pkgs/development/python-modules/mkdocs-awesome-pages-plugin/default.nix
blob: f7bf173400dd9b63f6bc2fbdabf90f78af6a2f70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  mkdocs,
  wcmatch,
  natsort,
  pytestCheckHook,
  beautifulsoup4,
  mock-open,
  importlib-metadata,
  pythonOlder,
}:
buildPythonPackage rec {
  pname = "mkdocs-awesome-pages-plugin";
  version = "2.9.2";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "lukasgeiter";
    repo = "mkdocs-awesome-pages-plugin";
    rev = "refs/tags/v${version}";
    hash = "sha256-pYyZ84eNrslxgLSBr3teQqmV7hA+LHwJ+Z99QgPdh6U=";
  };

  propagatedBuildInputs = [
    mkdocs
    wcmatch
    natsort
  ];

  nativeBuildInputs = [poetry-core];

  nativeCheckInputs = [
    pytestCheckHook
    beautifulsoup4
    mock-open
    importlib-metadata
  ];

  disabledTestPaths = [
    # requires "generatedfiles" mkdocs plugin
    "mkdocs_awesome_pages_plugin/tests/e2e/test_gen_files.py"
  ];

  meta = with lib; {
    description = "An MkDocs plugin that simplifies configuring page titles and their order";
    homepage = "https://github.com/lukasgeiter/mkdocs-awesome-pages-plugin";
    changelog = "https://github.com/lukasgeiter/mkdocs-awesome-pages-plugin/blob/v${version}/CHANGELOG";
    license = licenses.mit;
    maintainers = with maintainers; [phaer];
  };
}