2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, linkify-it-py
|
|
|
|
, markdown-it-py
|
|
|
|
, mdformat
|
|
|
|
, mdformat-tables
|
|
|
|
, mdit-py-plugins
|
|
|
|
, poetry-core
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mdformat-gfm";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.3.6";
|
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hukkin";
|
2024-02-07 01:22:34 +00:00
|
|
|
repo = "mdformat-gfm";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-c1jJwyTL8IgQnIAJFoPSuJ8VEYgnQ4slZyV0bHlUHLQ=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2024-02-29 20:09:43 +00:00
|
|
|
markdown-it-py
|
|
|
|
mdformat
|
2023-07-15 17:15:38 +00:00
|
|
|
mdformat-tables
|
2024-02-29 20:09:43 +00:00
|
|
|
mdit-py-plugins
|
2023-07-15 17:15:38 +00:00
|
|
|
linkify-it-py
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_default_style__api"
|
|
|
|
"test_default_style__cli"
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"mdformat_gfm"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Mdformat plugin for GitHub Flavored Markdown compatibility";
|
|
|
|
homepage = "https://github.com/hukkin/mdformat-gfm";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ aldoborrero polarmutex ];
|
|
|
|
};
|
|
|
|
}
|