587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, flit-core
|
|
, mdformat
|
|
, mdformat-admon
|
|
, mdformat-gfm
|
|
, mdit-py-plugins
|
|
, more-itertools
|
|
, pythonOlder
|
|
, pytest-snapshot
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mdformat-mkdocs";
|
|
version = "2.0.8";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KyleKing";
|
|
repo = "mdformat-mkdocs";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-HBRhmCqi13D+y+Vp2F27twU2eaRmJTcAzGOPCWMDtZU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
mdformat
|
|
mdformat-admon
|
|
mdformat-gfm
|
|
mdit-py-plugins
|
|
more-itertools
|
|
];
|
|
|
|
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/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ aldoborrero ];
|
|
};
|
|
}
|