1{
2 lib,
3 callPackage,
4 buildPythonPackage,
5 fetchFromGitHub,
6 mkdocs,
7}:
8
9buildPythonPackage rec {
10 pname = "mkdocs-exclude";
11 version = "1.0.2";
12 format = "setuptools";
13
14 # Repository has only 3 commits and no tags. Each of these commits has
15 # version of 1.0.0, 1.0.1 and 1.0.2 in setup.py, though.
16 src = fetchFromGitHub {
17 owner = "apenwarr";
18 repo = "mkdocs-exclude";
19 rev = "fdd67d2685ff706de126e99daeaaaf3f6f7cf3ae";
20 sha256 = "1phhl79xf4xq8w2sb2w5zm4bahcr33gsbxkz7dl1dws4qhcbxrfd";
21 };
22
23 propagatedBuildInputs = [ mkdocs ];
24
25 # Attempt to import "mkdocs_exclude" module in stand-alone mode fails:
26 #
27 # module 'mkdocs.config' has no attribute 'config_options'
28 #
29 # It works fine when actually used to build documentation of "pydantic",
30 # though. This package has no tests.
31 doCheck = false;
32
33 meta = with lib; {
34 description = "A mkdocs plugin to exclude files from input using globs or regexes.";
35 homepage = "https://github.com/apenwarr/mkdocs-exclude";
36 license = licenses.asl20;
37 maintainers = with maintainers; [ kaction ];
38 };
39}