nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 gitMinimal,
4 buildPythonPackage,
5 fetchFromGitHub,
6 flit-core,
7 mkdocs,
8 mkdocs-exclude,
9 mkdocs-material,
10 natsort,
11 pydantic,
12 pytestCheckHook,
13 wcmatch,
14
15}:
16buildPythonPackage rec {
17 pname = "mkdocs-awesome-nav";
18 version = "3.3.0";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "lukasgeiter";
23 repo = "mkdocs-awesome-nav";
24 tag = "v${version}";
25 hash = "sha256-guv+c4QwaATYEZ6XcWVZaOcZ7U9oLsW+RdWBtB1Xrnc=";
26 };
27
28 build-system = [ flit-core ];
29
30 dependencies = [
31 mkdocs
32 natsort
33 pydantic
34 wcmatch
35 ];
36
37 nativeCheckInputs = [
38 gitMinimal
39 mkdocs-exclude
40 mkdocs-material
41 pytestCheckHook
42 ];
43
44 disabledTestPaths = [
45 # depends on yet-unpackaged mktheapidocs plugin
46 "tests/compatibility/test_mktheapidocs.py"
47 # depends on yet-unpackaged mkdocs-monorepo-plugin
48 "tests/compatibility/test_monorepo.py"
49 # depends on yet-unpackaged mkdocs-multirepo-plugin
50 "tests/compatibility/test_multirepo.py"
51 # depends on yet-unpackaged mkdocs-static-i18n plugin
52 "tests/compatibility/test_static_i18n_folder.py"
53 "tests/compatibility/test_static_i18n_suffix.py"
54 ];
55
56 meta = {
57 description = "Plugin for customizing the navigation structure of your MkDocs site";
58 homepage = "https://github.com/lukasgeiter/mkdocs-awesome-nav";
59 changelog = "https://github.com/lukasgeiter/mkdocs-awesome-nav/blob/${src.tag}/CHANGELOG";
60 license = lib.licenses.mit;
61 maintainers = with lib.maintainers; [ phaer ];
62 };
63}