1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 markdown, 6 mkdocs-material, 7 pytestCheckHook, 8 pdm-backend, 9 markupsafe, 10}: 11 12buildPythonPackage rec { 13 pname = "mkdocs-autorefs"; 14 version = "1.4.3"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "mkdocstrings"; 19 repo = "autorefs"; 20 tag = version; 21 hash = "sha256-/UPhoJL026jpdvC22uRFiAGN4pU/uqcDrROZmkTFWv0="; 22 }; 23 24 postPatch = '' 25 substituteInPlace pyproject.toml \ 26 --replace 'dynamic = ["version"]' 'version = "${version}"' 27 ''; 28 29 build-system = [ pdm-backend ]; 30 31 dependencies = [ 32 markdown 33 markupsafe 34 mkdocs-material 35 ]; 36 37 nativeCheckInputs = [ pytestCheckHook ]; 38 39 disabledTestPaths = [ 40 # Circular dependencies 41 "tests/test_api.py" 42 ]; 43 44 disabledTests = [ 45 # missing pymdownx 46 "test_reference_implicit_with_code_inlinehilite_plain" 47 "test_reference_implicit_with_code_inlinehilite_python" 48 ]; 49 50 pythonImportsCheck = [ "mkdocs_autorefs" ]; 51 52 meta = { 53 description = "Automatically link across pages in MkDocs"; 54 homepage = "https://github.com/mkdocstrings/autorefs/"; 55 changelog = "https://github.com/mkdocstrings/autorefs/blob/${src.tag}/CHANGELOG.md"; 56 license = lib.licenses.isc; 57 maintainers = with lib.maintainers; [ fab ]; 58 }; 59}