18 buildPythonPackage rec {
19 pname = "mkdocstrings";
23 disabled = pythonOlder "3.8";
25 src = fetchFromGitHub {
26 owner = "mkdocstrings";
27 repo = "mkdocstrings";
28 rev = "refs/tags/${version}";
29 hash = "sha256-L3QQ2ll2sDbQwrmw88iwTW6WS2SNsiMR2TvuV4P1uj4=";
33 substituteInPlace pyproject.toml \
34 --replace-fail 'dynamic = ["version"]' 'version = "${version}"'
37 build-system = [ pdm-backend ];
48 ++ lib.optionals (pythonOlder "3.10") [
53 nativeCheckInputs = [ pytestCheckHook ];
55 pythonImportsCheck = [ "mkdocstrings" ];
58 # Circular dependencies
59 "tests/test_extension.py"
63 # Not all requirements are available
64 "test_disabling_plugin"
65 # Circular dependency on mkdocstrings-python
66 "test_extended_templates"
70 description = "Automatic documentation from sources for MkDocs";
71 homepage = "https://github.com/mkdocstrings/mkdocstrings";
72 changelog = "https://github.com/mkdocstrings/mkdocstrings/blob/${version}/CHANGELOG.md";
73 license = licenses.isc;
74 maintainers = with maintainers; [ fab ];