1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 linkify-it-py,
6 markdown-it-py,
7 mdformat,
8 mdformat-tables,
9 mdit-py-plugins,
10 poetry-core,
11 pytestCheckHook,
12 pythonOlder,
13}:
14
15buildPythonPackage rec {
16 pname = "mdformat-gfm";
17 version = "0.3.6";
18 pyproject = true;
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "hukkin";
24 repo = "mdformat-gfm";
25 tag = version;
26 hash = "sha256-c1jJwyTL8IgQnIAJFoPSuJ8VEYgnQ4slZyV0bHlUHLQ=";
27 };
28
29 nativeBuildInputs = [ poetry-core ];
30
31 propagatedBuildInputs = [
32 markdown-it-py
33 mdformat
34 mdformat-tables
35 mdit-py-plugins
36 linkify-it-py
37 ];
38
39 nativeCheckInputs = [ pytestCheckHook ];
40
41 disabledTests = [
42 "test_default_style__api"
43 "test_default_style__cli"
44 ];
45
46 pythonImportsCheck = [ "mdformat_gfm" ];
47
48 meta = with lib; {
49 description = "Mdformat plugin for GitHub Flavored Markdown compatibility";
50 homepage = "https://github.com/hukkin/mdformat-gfm";
51 license = licenses.mit;
52 maintainers = with maintainers; [
53 aldoborrero
54 polarmutex
55 ];
56 };
57}