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