Something went wrong. Try again.
lol
Something went wrong. Try again.
1.5 kB · 72 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273{ lib, buildPythonPackage, fetchFromGitHub, jinja2, markdown, markupsafe, mkdocs, mkdocs-autorefs, pdm-backend, pymdown-extensions, pytestCheckHook, dirty-equals,}:
buildPythonPackage (finalAttrs: { pname = "mkdocstrings"; version = "1.0.4"; pyproject = true;
src = fetchFromGitHub { owner = "mkdocstrings"; repo = "mkdocstrings"; tag = finalAttrs.version; hash = "sha256-FBDzTArJGKoJOmOLiYNTA9kshHWqD7zV1nR3sG4sOMk="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail 'dynamic = ["version"]' 'version = "${finalAttrs.version}"' '';
build-system = [ pdm-backend ];
dependencies = [ jinja2 markdown markupsafe mkdocs mkdocs-autorefs pymdown-extensions ];
nativeCheckInputs = [ pytestCheckHook dirty-equals ];
pythonImportsCheck = [ "mkdocstrings" ];
disabledTestPaths = [ # Circular dependencies "tests/test_api.py" "tests/test_extension.py" ];
disabledTests = [ # Not all requirements are available "test_disabling_plugin" # Circular dependency on mkdocstrings-python "test_extended_templates" "test_nested_autodoc[ext_markdown0]" ];
meta = { description = "Automatic documentation from sources for MkDocs"; homepage = "https://github.com/mkdocstrings/mkdocstrings"; changelog = "https://github.com/mkdocstrings/mkdocstrings/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.isc; maintainers = with lib.maintainers; [ fab ]; };})