1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 griffe,
6 mkdocs-material,
7 mkdocstrings,
8 pdm-backend,
9 pytestCheckHook,
10 pythonOlder,
11}:
12
13buildPythonPackage rec {
14 pname = "mkdocstrings-python";
15 version = "1.10.5";
16 pyproject = true;
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "mkdocstrings";
22 repo = "python";
23 rev = "refs/tags/${version}";
24 hash = "sha256-LRBo404TGxWBQdhN3gTyDHjB389hcHCfZK/oEFdjpOY=";
25 };
26
27 build-system = [ pdm-backend ];
28
29 dependencies = [
30 griffe
31 mkdocstrings
32 ];
33
34 nativeCheckInputs = [
35 mkdocs-material
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "mkdocstrings_handlers" ];
40
41 meta = with lib; {
42 description = "Python handler for mkdocstrings";
43 homepage = "https://github.com/mkdocstrings/python";
44 changelog = "https://github.com/mkdocstrings/python/blob/${version}/CHANGELOG.md";
45 license = licenses.isc;
46 maintainers = with maintainers; [ fab ];
47 };
48}