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