Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.12.2"; 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-dc9RXbrwZS/7eAF0BrGS2kJxG62rB5RLxf3yNZ6+g4Q="; 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 disabledTests = [ 42 # Tests fails with AssertionError 43 "test_windows_root_conversion" 44 ]; 45 46 meta = with lib; { 47 description = "Python handler for mkdocstrings"; 48 homepage = "https://github.com/mkdocstrings/python"; 49 changelog = "https://github.com/mkdocstrings/python/blob/${version}/CHANGELOG.md"; 50 license = licenses.isc; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}