nixpkgs/pkgs/development/python-modules/mdformat-mkdocs/default.nix
Fabian Affolter 0f317c1a1a
python313Packages.mdformat-mkdocs: modernize
Removed pythonOlder restriction and updated build inputs.
2025-10-27 10:50:45 +01:00

73 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
mdformat-beautysh,
mdformat-footnote,
mdformat-frontmatter,
mdformat-gfm,
mdformat-simple-breaks,
mdformat-tables,
mdformat,
mdit-py-plugins,
more-itertools,
pytest-snapshot,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mdformat-mkdocs";
version = "4.4.2";
pyproject = true;
src = fetchFromGitHub {
owner = "KyleKing";
repo = "mdformat-mkdocs";
tag = "v${version}";
hash = "sha256-u3IHqllknX6ilReXRVyZoDfqid8Ioe+zvC3wPh04HXo=";
};
build-system = [ flit-core ];
dependencies = [
mdformat
mdformat-gfm
mdit-py-plugins
more-itertools
];
optional-dependencies = {
recommended = [
mdformat-beautysh
# mdformat-config
mdformat-footnote
mdformat-frontmatter
# mdformat-ruff
mdformat-simple-breaks
mdformat-tables
# mdformat-web
# mdformat-wikilink
];
};
nativeCheckInputs = [
pytest-snapshot
pytestCheckHook
];
disabledTestPaths = [
# AssertionError: assert ParsedText(lines=[LineResult(parsed=ParsedLine(line_...
"tests/format/test_parsed_result.py"
];
pythonImportsCheck = [ "mdformat_mkdocs" ];
meta = with lib; {
description = "Mdformat plugin for MkDocs";
homepage = "https://github.com/KyleKing/mdformat-mkdocs";
changelog = "https://github.com/KyleKing/mdformat-mkdocs/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ aldoborrero ];
};
}