1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 lib,
5 click,
6 essentials-openapi,
7 flask,
8 hatchling,
9 httpx,
10 jinja2,
11 mkdocs,
12 pytestCheckHook,
13 rich,
14 setuptools,
15}:
16buildPythonPackage rec {
17 pname = "neoteroi-mkdocs";
18 version = "1.1.0";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "Neoteroi";
23 repo = "mkdocs-plugins";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-qizF1Y3BUyr0ekoATJVa62q7gvpbMW3fIKViov2tFTI=";
26 };
27
28 buildInputs = [ hatchling ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 flask
33 setuptools
34 ];
35
36 propagatedBuildInputs = [
37 essentials-openapi
38 click
39 jinja2
40 httpx
41 mkdocs
42 rich
43 ];
44
45 disabledTests = [
46 "test_contribs" # checks against its own git repository
47 ];
48
49 pythonImportsCheck = [ "neoteroi.mkdocs" ];
50
51 meta = with lib; {
52 homepage = "https://github.com/Neoteroi/mkdocs-plugins";
53 description = "Plugins for MkDocs";
54 changelog = "https://github.com/Neoteroi/mkdocs-plugins/releases/v${version}";
55 license = licenses.mit;
56 maintainers = with maintainers; [
57 aldoborrero
58 zimbatm
59 ];
60 };
61}