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