2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flit-core,
|
|
|
|
mdformat,
|
|
|
|
mdformat-admon,
|
|
|
|
mdformat-gfm,
|
|
|
|
mdit-py-plugins,
|
|
|
|
more-itertools,
|
|
|
|
pythonOlder,
|
|
|
|
pytest-snapshot,
|
|
|
|
pytestCheckHook,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mdformat-mkdocs";
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "3.0.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KyleKing";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "mdformat-mkdocs";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-31 10:19:44 +00:00
|
|
|
hash = "sha256-Af15Xs8K/QSeIxQNgi1n8xZ+SyyzNs5JL3wse0+LoyE=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-07-15 17:15:38 +00:00
|
|
|
mdformat
|
2024-04-21 15:54:59 +00:00
|
|
|
mdformat-admon
|
2023-07-15 17:15:38 +00:00
|
|
|
mdformat-gfm
|
|
|
|
mdit-py-plugins
|
2024-04-21 15:54:59 +00:00
|
|
|
more-itertools
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeCheckInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
pytest-snapshot
|
2024-01-02 11:29:13 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# AssertionError: assert ParsedText(lines=[LineResult(parsed=ParsedLine(line_...
|
|
|
|
"tests/format/test_parsed_result.py"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "mdformat_mkdocs" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-02-29 20:09:43 +00:00
|
|
|
description = "Mdformat plugin for MkDocs";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/KyleKing/mdformat-mkdocs";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/KyleKing/mdformat-mkdocs/releases/tag/v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ aldoborrero ];
|
|
|
|
};
|
|
|
|
}
|